Posts

Showing posts with the label Firefox

Selenium - How to initialize Chrome and Firefox WebDriver

Selenium - How to initialize Chrome and Firefox WebDriver: What is WebDriver: Its important we understand what is WebDriver, before jumping to use it to initialize the browsers. WebDriver API was introduced with Selenium 2.0 and was the primary feature of it. WebDriver is designed to provide a simpler, more concise programming interface, overcome the limitations of Selenium RC (such as Single Host origin policy) and provide better support for modern advanced web applications. It was developed to better support dynamic web pages where elements of a page may change without the page itself being reloaded.  The way Selenium RC worked was injecting javascript functions into the browser when the browser was loaded and then used its javascript to execute the commands in the browser. WebDriver makes direct calls to the browser and drives the browser directly using the browser’s built in support for automation One of the most common interview question is whethe...