Unable to Launch Google Chrome through webdriver

1,442 views
Skip to first unread message

Magesh

unread,
Mar 7, 2015, 11:25:57 PM3/7/15
to seleniu...@googlegroups.com
Hi,
I have a small piece of code like below and iam using Windows 8.1 OS,

                System.setProperty("webdriver.chrome.driver", "D:\\Testing Class\\Selenium\\Downloads\\chromedriver_win32\\chromedriver.exe");
WebDriver wd = new ChromeDriver();
wd.get("https://google.com");

When i execute the above code system is trying to launch google chrome but throwing an error.
Error : an administrator has installed google chrome on this system and it is available for all users error. Please refer the attachment for more info. Please help.....
GoogleChrome_err.jpg

CH!NN@ K

unread,
Mar 8, 2015, 4:35:58 AM3/8/15
to seleniu...@googlegroups.com
Hi Magesh, below url is launch chrome browser using selenium webdriver
http://techlearn.in/content/how-launch-chrome-browser%C2%A0using%C2%A0selenium


---
Thanks & Regards,
Purushotham Karimbedu,
Drupal Developer and QA Engineer,
Website for Selenium : http://techlearn.in


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6f81c09c-96e4-46d8-bc89-f31f5c1ac2fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

deepak ms

unread,
Mar 12, 2015, 7:28:19 AM3/12/15
to seleniu...@googlegroups.com
Hi Magesh,

Try below code to start the chrome:

                System.setProperty("webdriver.chrome.driver", "D:/Testing Class/Selenium/Downloads/chromedriver_win32\chromedriver.exe");
                WebDriver wd = new ChromeDriver();
wd.get("https://google.com");

regards,
deepak

CH!NN@ K

unread,
Mar 12, 2015, 8:02:32 AM3/12/15
to seleniu...@googlegroups.com
Hi Magesh, below url is launch chrome browser using selenium webdriver :


---
Thanks & Regards,
Purushotham Karimbedu,
Drupal Developer and QA Engineer,
Website for Selenium : http://techlearn.in


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Krishnan Mahadevan

unread,
Mar 12, 2015, 10:06:35 AM3/12/15
to Selenium Users
Purushotham

The code that the original poster shared and the code that is available in your blog are pretty much the same. Do you want help elaborate as to how does following your blog help the original poster solve their problem ? 

It is good that you are trying to help people, but please do take a few extra moments to suggest relevant information to a query so that the person who is asking the question wouldnt feel like he or she is just on a wild goose chase.


Magesh,
You should try going through this google forum thread and see if the suggestions mentioned in it will help you : https://productforums.google.com/forum/#!topic/chrome/tmUwL7flQGk (especially the response provided by Ace Johns)


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Vishal Garg

unread,
May 5, 2015, 5:50:03 PM5/5/15
to seleniu...@googlegroups.com
Hi Magesh,

Have you got answer to your query?
Actually i was also facing the similar issue on my windows 8 machine.
and finally the problem that i found was there were two chrome exe at two different locations on my machine.
1. C:\Users\<user_name>\AppData\Local\Google\Chrome\Application
2. C:\Program Files (x86)\Google\Chrome\Application
That is why the problem was occuring. Once i renamed the Chrome folder of local i.e. (C:\Users\<user_name>\AppData\Local\Google\Chrome\Application) to something like (C:\Users\<user_name>\AppData\Local\Google\Chrome_NEW\Application), the  problem disappeared and chrome browser launched successfully.

Hope this helps.

Regds
Vishal


On Sunday, March 8, 2015 at 9:55:57 AM UTC+5:30, Magesh wrote:
Reply all
Reply to author
Forward
0 new messages