How to automate Chrome driver in Selenium?
I am working on automation of web application, we are having lot of test cases in that application.
There is a requirement to launch chrome browser and open the application and perform some actions in it. I did not find proper way to automate such kind of things in Selenium for chromedriver. I just know about chromedriver - selenium and I have gone through both, but couldn't able to find out exact solution of my problem. If there is any solution, please provide it with some examples, because that will help me a lot. I am working with eclipse indigo with JDK7. You can use selenium ide (i dont remember whether eclipse comes with it or not) and write the code using Java programming language. Then using javapackages, you can create jar file of your project and then run it through your selenium ide.
Or you can simply write test case in python by following this answer.
How to update ChromeDriver in Selenium automatically Java?
I am trying to update ChromeDriver by using the following code : System.
SetProperty("webdriver.chrome.driver", "C:UsersdellpcDownloadschromedriver.exe");
ChromeOptions options = new ChromeOptions();. Options.setExperimentalOption("useAutomationExtension", false); options.setExperimentalOption("exceptionHandling", true); options.setExperimentalOption("offscreenWindow",true); options.setExperimentalOption("offscreenWindowSize",1040); WebDriver driver = new ChromeDriver(options);. But I get error message : Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: chrome failed to start: exited abnormally
Can any one know how to update the ChromeDriver
The solution : After a long time of research, I finally figure out a workable way that will save my time from searching for a valid solution as this is not a new issue and it has been talked about many times but I couldn't find any proper answer and thus I used an older version of chromedriver.setProperty("webdriver.driver", "C:/Users/dellpc/Downloads/chromedriver-2.38.558364.exe");
ChromeOptions options = new ChromeOptions();. Options.setExperimentalOption("useAutomationExtension", false); options.setExperimentalOption("exceptionHandling", true); options.setExperimentalOption("offscreenWindow",true);
Related Answers
How can we use the Selenium tool with HeadSpin?
Selenium is a tool that is used to automate functional testing. There are two types...
What are 5 Uses of Selenium?
Selenium is a web-automation tool that helps you to test web applications....
How can we use the Selenium tool with HeadSpin?
Selenium is a cross-browser testing automation framework w...