In this video will see how to run selenium web driver program on“Chrome for Testing (specially designed for automation)” browser or chrome browser which is having version more than 114.
Video 1: How to resolve “Response code 500” error in selenium webdriver- Could not create a session error?
https://www.youtube.com/watch?v=03db6XdCP1k
Video 2: How to resolve selenium ConnectionFailedException: Unable to establish connection to localhost?
https://www.youtube.com/watch?v=YL4Jr8AZH4g
I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com
Code:
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver", "path of chromedriver exe\\chromedriver.exe");
ChromeOptions op = new ChromeOptions();
op.setBinary("path of chrome browser for testing exe\\chrome.exe");
op.addArguments("--remote-allow-origins=*");
WebDriver driver = new ChromeDriver(op);
driver.get("https://programmerworld.co/");
}
Screenshots: