Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

Can tests recorded using Selenium IDE be run in other browsers

Although Selenium IDE seems very simple, it will be very useful when using with other tools of Selenium. The interviewers want to know how broad you have used Selenium IDE.

Question:

Can tests recorded using Selenium IDE be run in other browsers?

Answer:

Yes. Although Selenium IDE is a Firefox add on, however, tests created in it can also be run in other browsers by using Selenium RC (Selenium Remote Control) and specifying the name of the test suite in command line.

For example:

with command line

c:\Program Files\Mozilla Firefox\firefox.exe" -chrome "chrome://selenium-ide/content/selenium/TestRunner.html?baseURL=http://localhost&test=file:///c:\tests\testsuite.html&auto=false"

With Java program

C:\Program Files (x86)\Java\jre6\bin\java.exe" -jar c:\seltest\selenium-server-standalone-2.18.0.jar -htmlSuite "*firefox" "http://127.0.0.1" "c:\seltest\mytestsuite.html" "c:\seltest\logs\results-firefox.html" -port 5555