WebDriver Class and Install Firefox Browser – Selenium Training

WebDriver Class and Install Firefox Browser – Selenium Training

WebDriver Class and Install Firefox Browser – Selenium Training

Web driver class :

In selenium webDriver jars, webDriver is a base class , we can use this class to create an object. This object is useful to automate specified website pages using headless browser or with head browser .

Example 1 :

WebDriver obj= new HtmlUnitDriver ( );

object can able to automate specified website

pages without showing on desktop.

Example 2 :

WebDriver obj = new FirefoxDriver ( );

object can able to automate website

pages by showing using Firefox browser.

By default, selenium webDriver based “webDriver class object can support one headless browser like HtmlUnit and one with head browser like Firefox.

Note :

Firefox 30.0 is a stable version as per selenium webDriver usage for website testing.

Navigation :

Go to google.com site.

Enter Firefox 30.0 free download.

Select Firefox download site.

Click download.

Wait until complete download.

Paste that download in PF.

Double click on download.

Click next until finish.

Open Firefox browser.

Click menu icon.

Options.

Advanced.

Update.

Click on radio button ( select) never check for updates.

Click ok.

Close Firefox browser.

In this article we have seen WebDriver Class and Installation of Firefox Browser – Selenium Training . In the next article will see the Locating Elements in web pages.