Title
Running ruby in selenium rc
Body

 Below are the steps to run ruby in selenium rc to run in multiple browsers

1) Record test in selenium IDE

2) After recording , convert into ruby format

3) Save into your local hard disk with .rb extension (Ex:- googlesearch.rb)

4) Download selenium rc from http://seleniumhq.org/download/

5) Install selenium-client gem

6) Run selenium rc in command prompt or in terminal as java -jar file_name.jar

7) Run saved file googlesearch.rb in command prompt or in terminal as ruby googlesearch.rb

 

To run in internet Explorer, opera and chrome

------------------------------------------------------------------

 Search for keyword :browser. By default  :browser => "*chrome" , change chrome to "*iexplore" or "*iexploreproxy"  to run in internetexplorer

 For opera browser change to :browser => "*opera"

 For googlechrome browser change to :browser => "*googlechrome"

 

Associated Tags
Ruby,Selenium,Selenium IDE, Selenium RC
Created By
ravikiran
Created At
2011-11-14 07:46:42 UTC
Last Updated At
2011-11-14 07:46:42 UTC
Add Comment