How to Pass WebDriver Instance to Another Class in Selenium | WebDriver Instances for multiple class

preview_player
Показать описание
How to Pass WebDriver Instance to Another Class in Selenium ,in this video i am giving clear explanation with real time examples, please watch video of How to Pass WebDriver Instance to Another Class in Selenium to use in your projects.

How to Pass WebDriver Instance to multiple Classes in Selenium

2.Java extends keyword
3.Required Classes
Рекомендации по теме
Комментарии
Автор

It was very useful, I wasted one week to find the issue. I didn't use public in front of WebDriver driver. helped me a lot. thank you. Kepp on uploading more youtube lessons

SCK_Online
Автор

this is a standard procedure that can be used with abstract classes...
i hoped to find a solution to share the state of a webdriver to multiple classes.
In java a class can only be extended once. So since you have a bigger test-structure you need more than two classes.

Nice video-explanation for only two classes at all.

tolerance_enum
Автор

When I inherit non static driver to child class it gives null value but with static work fine.. I want it to be nonstatic for parallel execution, any suggestions?

prasannakumar
Автор

Plz u can upload the encapsulation in selenium

umaganta
Автор

If you know how to do this in python, I'll give you my firstborn.

rbrtsparkman