Reputation: 109
I am executing my Selenium tests on AWS EC2 Ubuntu instance from Windows OS using RemoteWebDriver.
Below is the Selenium code:
WebDriverManager.chromedriver().setup();
ChromeOptions co = new ChromeOptions();
WebDriver driver = new RemoteWebDriver(new URL("http://18.118.213.92:4444/wd/hub"), co);
But it is throwing the below error:
io.github.bonigarcia.wdm.config.WebDriverManagerException: java.nio.file.NoSuchFileException: /tmp/15425606072528251971
at testing.RediffLoginTest.bmeth(RediffLoginTest.java:55)
Caused by: java.nio.file.NoSuchFileException: /tmp/15425606072528251971
at testing.RediffLoginTest.bmeth(RediffLoginTest.java:55)
Normally, when we execute tests on Windows OS, then the above code downloads the browser drivers automatically to the cache folder in user directory.
Any help is appreciated.
Upvotes: -1
Views: 257
Reputation: 4858
You are using remote browsers, so you don't need WebDriverManager (i.e., remove line WebDriverManager.chromedriver().setup();
).
Upvotes: 0