This blog comprises of learning to get started with Open source automation tools. Mentions best practices of Agile,Xtreme Programming Selenium In nutshell.
Favourite Quote
Wednesday, May 2, 2012
Invoking a Chrome browser - using ChromeDriver
As ChromeDriver is developed is Collaboration with the Chromium team.
Implementation is slightly different, Thought i'll better have it blogged which may help any one
Here are steps i followed to override the Enable Protected Mode To All zones
1. Here's the detailed wiki of selenium for a bit of background http://code.google.com/p/selenium/wiki/ChromeDriver
2. Download a appropriate driver based on your Operating System http://code.google.com/p/chromedriver/downloads/list
There are many ways mentioned on the selenium website for invoking the ChromeDriver.exe,I am mentioning what worked for me
IWebDriver driver = new ChromeDriver(@"C:\Selenium\");
driver.Navigate().GoToUrl("Pass your http request");
3. The above snippet is C#
4. On executing your tests
5. Just like in screen shot you'l see the chromedriver.exe being initialized
6. Then the browser launches
7. You will have to cleanUp at the end of your test by quitting the driver
driver.Quit();
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment