How can I automate Google Chrome using Selenium RC

0 votes

I am trying to test my site with Selenium RC + NUnit +

I am able to test my work on Firefox,Safari,opera,IE 8 but not google chrome. I entered this as an argument

 selenium = new DefaultSelenium(Server, ServerPort,
                                          "*chrome", DomainURL);

This always loads Firefox and not Google Chrome. 

How can be get it to run on Chrome?.

Mar 6, 2019 in Selenium by Vaishnavi
• 1,180 points

I am also doing the same thing, so can you share some point as in which file under framework i should put this

 selenium = new DefaultSelenium(Server, ServerPort,
                                          "*chrome", DomainURL);
Hey @Alok, can you please specify, which framework you are using?
hey kim  i am able to get my result with addming googlechrome, so this task is done, thx for your attention, but i really need a help-

I want to run my script in chrome but its not able to upload file using type cmd so is there any way i can upload a document using chrome browser, my combination is chrome + RC and i am reading data using xml files.

Hey @Alok, you can go with Autoit. There you can write script for uploading and downloading documents very easily and then you can call those scripts in your selenium code wherever needed.

Hope this helps!

1 answer to this question.

0 votes

Chrome is used to launch a special mode of Firefox (a mode in which the applications have various privileges with fewer security restrictions). So, the fact that Firefox is launched instead of Google Chrome is normal.

If you want to launch Google Chrome, you will have to use some other browser other than Chrome.

Using Selenium RC in interactive mode, with something like this :

$ java -jar selenium-server.jar -interactive

and using the getNewBrowserSession command incorrectly like this :


I get the list of browsers that are supported and not supported:

23:43:09.317 INFO - Got result: Failed to start new browser session: Browser not supported:
(Did you forget to add a *?)

Supported browsers include:
 on session null

So, you should be able to launch Google Chrome using *google chrome instead of *chrome.

This is not done on Windows. And I cannot find anything in the documentation to back me up. Still, with a bit of luck, this might help you.

Anyway, happy learning!

answered Mar 6, 2019 by Surya
• 970 points

Related Questions In Selenium

0 votes
1 answer

How can I automate google search for a keyword using ruby selenium webdriver?

Hi Amir, following code snippet shows how ...READ MORE

answered Aug 26, 2019 in Selenium by Anvi
• 14,150 points
+1 vote
1 answer

How can I automate the process of adding iPhone to cart in Flipkart using Selenium(java),Page Object Model and TestNG? Also validate if product is added and available in cart?

Hey check this It deals with a similar ...READ MORE

answered Jan 13, 2020 in Selenium by Karan
• 19,610 points
0 votes
1 answer

How can I download the *.jar file from http:// using selenium WebDriver?

For Selenium Standalone Server use this: profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive"); and ...READ MORE

answered Apr 9, 2018 in Selenium by Martin
• 4,320 points
0 votes
1 answer

How can I implement Selenium using C#?

Reference using OpenQA.Selenium.Firefox; using OpenQA.Selenium; class GoogleSuggest { ...READ MORE

answered Apr 9, 2018 in Selenium by Neville
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,500 points
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,910 points
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
+1 vote
2 answers

How can I delete an element in Selenium using Python?

You can directly delete the node using ...READ MORE

answered Sep 14, 2019 in Selenium by tonystark
• 500 points
0 votes
2 answers

How to save as PDF on Chrome using Selenium

Vaishanvi, Select  ID  selected dropdown or it ...READ MORE

answered Feb 22, 2020 in Selenium by Abdul
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP