·
Running the scripts on various Drivers
1. InternetExplorerDriver
The InternetExplorerDriver is
a standalone server which implements WebDriver's wire protocol. This driver has
been tested with IE 6, 7, 8 and 9 on appropriate combinations of XP, Vista and
Windows 7.
The driver supports running 32-bit and 64-bit versions of the browser.
The choice of how to determine which "bit-ness" to use in launching
the browser depends on which version of the IEDriverServer.exe is launched. If
the 32-bit version of IEDriverServer.exe is launched, the 32-bit version of IE
will be launched. Similarly, if the 64-bit version of IEDriverServer.exe is
launched, the 64-bit version of IE will be launched.
Steps to execute with InternetExplorerDriver
·
Download
the IEDriverServer.exe from http://code.google.com/p/selenium/downloads/list
·
Writhe
the below code in Setup method
System.setProperty("webdriver.ie.driver","D:\\IEDriverServer.exe";
WebDriver driver = new InternetExplorerDriver();
2. ChromeDriver
Developed in collaboration with the Chromium team, the ChromeDriver is a
standalone server which implements WebDriver's wire protocol.
The ChromeDriver consists of three separate pieces. There is the
browser itself ("chrome"), the language bindings provided by the
Selenium project ("the driver") and an executable downloaded from the
Chromium project which acts as a bridge between "chrome" and the
"driver". This executable is called "chromedriver",
Steps to execute with Chrome Driver
·
Download
the ChromeDriver.exe from http://code.google.com/p/chromedriver/downloads/list
·
Write
the the below code in Setup method
No comments:
Post a Comment