Automated web testing with WebDriver
WebDriver is a tool for automating web application testing executing tests across a wide range of browsers like Chrome, Firefox and Microsoft Edge. As a member of the Selenium family, it is designed to provide better support for dynamic web pages.
- WebDriver makes direct calls to a browser using the browser’s native support for automation.
- It provides separated language-binding for each supported language such as C#, Java, Perl, PHP or Ruby. You use it to implement test script.
- Each supported browser has separated Executable Browser Driver which is used along with language-binding to run the test.
- WebDriver interacts with applications under test in a more realistic way. For instance, if there exists a disabled checkbox on a testing page, WebDriver has no capability to select the checkbox as just as how a real person cannot.
By using WebDriver, you are able to run tests across browsers with minor changes. It saves your time in implementing as well as maintaining test scripts. Besides that, WebDriver is a stand-alone component which is released frequently to support new versions and features of browsers.
- WebDriver only supports locating interface elements by Selenium-supported properties such as id, name, tagname and xpath. You had better use POM Builder or the browser’s inspect feature to identify web elements instead of the Interface Viewer.
- For legacy interface elements that were captured with different from Selenium-supported properties, replace these properties with. It means that you ought to re-capture the interface elements using the Selenium-supported property.