Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
We do create a reference variable ‘driver’ of type WebDriver
Home
Selenium
We do create a reference variable ‘driver’ of type WebDriver
asked
Aug 22, 2019
in
Selenium
by
john ganales
We do create a reference variable ‘driver’ of type WebDriver
WebDriver driver = new FirefoxDriver();
instead of creating
FirefoxDriver driver = new FirefoxDriver();
1
2
3
4
5
WebDriver driver = new FirefoxDriver();
instead of creating
FirefoxDriver driver = new FirefoxDriver();
What is the purpose of doing this way?
#selenium-for-load-testing
selenium-bot-detection
selenium-for-ios
ios-selenium
automated-visual-testing-
selenium
load-testing-selenium
python-selenium
selenium-online-training-videos
learning-selenium
selenium-syllabus
selenium-tools-for-testing
selenium-element
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 22, 2019
by
rahulsharma
If we create a reference variable driver of type WebDriver then we could use the same driver variable to work with any browser of our choice such as IEDriver, SafariDriver etc.,
...