Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

using google chrome with selenium RC

View previous topic View next topic Go down

using google chrome with selenium RC

Post by ankur_infy on 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

ankur_infy

Posts : 3
Join date : 2012-05-15

Back to top Go down

Re: using google chrome with selenium RC

Post by rohit13 on 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??

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: using google chrome with selenium RC

Post by ankur_infy on 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

ankur_infy

Posts : 3
Join date : 2012-05-15

Back to top Go down

Re: using google chrome with selenium RC

Post by rohit13 on 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");
    }

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

Re: using google chrome with selenium RC

Post by Sponsored content Today at 7:14 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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