Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

Run Selenium RC with Google Chrome

In some cases, to verify web application compatibility with Google Chrome, QA Engineers need to run Selenium RC tests with Google Chrome. 

Here are the two options to run tests on Google Chrome.

1. Add the directory containing "chrome.exe" to your system PATH environment. For example, if chrome.exe is under the location "C:\Program Files (x86)\Google\Chrome\Application", you need to add this to your system environment path and reboot your computer. Once you setup the path to chrome.exe and reboot your pc, you can launch your test suite with this command below.

C:\selenium-java-2.39.0>java -jar selenium-server-standalone-2.39.0.jar -htmlSuite "*googlechrome" "http://www.seleniummaster.com" "c:\SeleniumTestCase\SeleniumMasterLoginModuleSui
te.html" "c:\SeleniumTestCase\chromeresult.html"

 

2. Specify the chrome.exe path in the command. For example, if chrome.exe is under the location "C:\Program Files (x86)\Google\Chrome\Application", you need to add this to your command after "*googlechrome".

C:\selenium-java-2.39.0>java -jar selenium-server-standalone-2.39.0.jar -htmlSuite "*googlechrome C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "http://www.seleniummaster.com" "c:\SeleniumTestCase\SeleniumMasterLoginModuleSui
te.html" "c:\SeleniumTestCase\chromeresult.html".

 

In both Selenium RC commands, chromeresult.html file is created, which has the test result information.