Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
ankur_infy
Posts : 3
Join date : 2012-05-15

using google chrome with selenium RC Empty using google chrome with selenium RC

Tue May 15, 2012 3:09 pm
Hi

i have selenium RC server with me. i could launch IE and firefox using this but i need to launch safari and chrome as well. i am facing issue with this. kindly help



Thanks
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

using google chrome with selenium RC Empty Re: using google chrome with selenium RC

Tue May 15, 2012 3:31 pm
which issues you are facing??
Which parameter you are passing for chrome / safari ??

Can you please provide more information??
avatar
ankur_infy
Posts : 3
Join date : 2012-05-15

using google chrome with selenium RC Empty Re: using google chrome with selenium RC

Tue May 15, 2012 3:48 pm
i tried writing "*googlechrome" as browser name parameter. i was unable to launch chrome. someone told me to use web driver but i am not very comfortable with it. so i wanted to use it with RC itself. do you have any snippet for running chrome using selenium RC and opening any website say google.com through it.

Thanks
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 37
Location : INDIA
http://radical-qa.blogspot.in/

using google chrome with selenium RC Empty Re: using google chrome with selenium RC

Tue May 15, 2012 4:04 pm
selenium = new DefaultSelenium("localhost", 4444, "*googlechrome", "http://www.google.com");
and for safari browser you can use *safari / *safariproxy.

Below is sample working code for googlechrome browser


Code:
public class google extends SeleneseTestCase {
    @Before
    public void setUp() throws Exception {
        selenium = new DefaultSelenium("localhost", 4444, "*googlechrome", "http://www.yatra.com/flights-india-vx/");
        selenium.start();
    }

    @Test
    public void test() throws Exception {
        selenium.open("/flights-india-vx/");
        selenium.click("id=auto_origin");
        selenium.click("xpath=(//*[@class="ui-corner-all"])[5]");
        selenium.click("id=auto_destination");
        selenium.click("id=ui-active-menuitem");
        selenium.click("id=datePickerDepart_dom1");
        selenium.click("link=12");
        selenium.click("id=btnFindFlights");
        selenium.waitForPageToLoad("30000");
    }
Sponsored content

using google chrome with selenium RC Empty Re: using google chrome with selenium RC

Back to top
Permissions in this forum:
You cannot reply to topics in this forum