over 9 years ago
Web Driver is just a JAR file which contains collection of interface and class.
Web Driver is a web based automation testing tool which uses core Java API to drive the test on the browser. Technically Web Driver is an interface , all the browsers driver classes are implemented as Web Driver interface and also many other interfaces.
It is a new version of Selenium which removes many drawbacks and issues in Selenium RC. Web Driver as native supports all the browsers and all the APIs of Web Driver are purely object oriented.
Web Driver supports multiple browsers. For Web Driver it doesn't matter whether their is already opened browser, it launches a new browser for each execution.
Whenever Web Driver launches all the add-ons are automatically get disabled.
Class Name in Web Driver:
Example: webDriver driver = new FireFoxDriver();
Example: driver.get("www.google.com");
Example: Wb = driver.findelement(By.locatorname);
If element present in UI, find element method and return web element object, if element not present in UI throws "No such element exception".
Following Locator's available in WebDriver:-
All the above locators are static methods which are implemented under the 'By' class.
Example: Wb.sendkeys("admin");
Can you help out the community by solving one of the following Automation problems?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
0 Comment(s)