rshf / chromedriver

Automatically exported from code.google.com/p/chromedriver
2 stars 1 forks source link

needs better instruction for basic start of chromedriver (or just link to chromedriver docs) #194

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
go to the page:
http://code.google.com/p/selenium/wiki/ChromeDriver

under 'getting started' it reads like this:

To get set up, first download the appropriate prebuilt server. Make sure the 
server can be located on your PATH or specify its location via the 
webdriver.chrome.driver system property. Finally, all you need to do is create 
a new ChromeDriver instance:

WebDriver driver = new ChromeDriver();
driver.get("http://www.google.com");

unfortunately for a newcomer there is no explanation for 
'webdriver.chrome.driver', or what that even is.
this could be improved with code like this:

File file = new File("/path/to/chromedriver");
System.setProperty("webdriver.chrome.driver", file.getAbsolutePath());
driver = new ChromeDriver();
driver.get("http://www.google.com");

see this stackoverflow post if you don't believe me:
http://stackoverflow.com/questions/7450416/selenium-2-chrome-driver

Original issue reported on code.google.com by shri.a...@gmail.com on 2 Feb 2013 at 2:13

GoogleCodeExporter commented 9 years ago
I agree. We have a similar document on this site which hopefully is a bit 
simpler: https://code.google.com/p/chromedriver/wiki/GettingStarted.  Let me 
know if you agree.  We could ask the selenium folks to just link to ours.

Original comment by kkania@chromium.org on 4 Feb 2013 at 6:38

GoogleCodeExporter commented 9 years ago
of course i agree.
this is tres better

Original comment by shri.a...@gmail.com on 4 Feb 2013 at 8:37

GoogleCodeExporter commented 9 years ago

Original comment by kka...@google.com on 4 Feb 2013 at 9:25

GoogleCodeExporter commented 9 years ago
Moved to: Issue selenium:5127

Original comment by kka...@google.com on 4 Feb 2013 at 9:25