<<Previous Question <<1500 Plus Interview Questions>> Next Question>>
How do I launch the browser using Selenium WebDriver?
Watch the answer for this Selenium Interview Question in a detailed manner in the below youtube video:
Note: Don’t forget to subscribe to my Youtube channel.
Notes used for explanation in this Youtube video are provided after the video:
Notes used in the above Youtube Video:
Different ways to launch the Browsers using Selenium WebDriver
There are two ways we can launch the browser using Selenium WebDriver:
- > Using Browser Driver
- > Using WebDriverManager
I will be using Firefox Browser for explaining this Selenium Interview Question:
Using Browser Driver
- > System.setProperty(“webdriver.geckodriver”,GeckoDriverExe Path);
- > WebDriver driver = new FirefoxDriver();
Using WebDriverManager
- > WebDriverManager.firefoxdriver.setup()
- > WebDriver driver = new FirefoxDriver();
Next Steps:
- > For more Selenium Interview Questions and answers, continue to the next post (Click on Next Post link below)
- > Check complete Selenium Interview Questions list here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning ?
<<Previous Question <<1500 Plus Interview Questions>> Next Question>>