Questions tagged [webdrivermanager-java]

WebDriverManager is a Java library aimed to automate the Selenium Webdriver binaries management in runtime.

WebDriverManager is a Java library aimed to automate the Selenium Webdriver binaries management in runtime.

If you have ever used Selenium Webdriver, you probably know that in order to use browsers such as Chrome, Firefox, Opera, Internet Explorer, Microsoft Edge, or PhantomJS, you need to download a binary which allows WebDriver to handle the browser. This is quite annoying since it forces you to link directly this binary in your source code. In addition, you have to check manually when new versions of the binaries are released. WebDriverManager comes to the rescue, performing in an automated way all this dirty job for you.

137 questions
0
votes
0 answers

Exception caused by Internet Explorer cache not being found. java.net.UnknownHostException

I am using WebDriverManager to handle browser drivers downloads when working with Selenium. The drivers are being stored at default cache location. For the other browsers being used (firefox, chrome, edge) the cached drivers are detected. It appears…
John O Sullivan
  • 301
  • 1
  • 2
  • 13
0
votes
1 answer

Have WebDriverManager Download to Specific Directory

I understand that the following line of code places the latest chromedriver file in ~/.cache/selenium... WebDriverManager.chromedriver().setup(); My question: Is there a way to configure this to download the file to a specific directory? As an…
0
votes
1 answer

Unable to launch Firefox 81.0 with webdrivermanager - Testng - Java - Maven

I am passing mvn command with -Dbrowser=firefox never launches firefox. Below is my code to initialize browser and it works for Chrome but does not launch Firefox nor Edge. I have added webdrivermanager latest maven dependency 4.2.2 to my pom.xml. I…
0
votes
1 answer

Java MySQL connection not working: No suitable driver found

So I am trying to make a connection with JDBC using XAMPP, but it doesn't work, What am I doing wrong here? public static void main(String args[]) { try { Connection myConn = DriverManager.getConnection( …
0
votes
1 answer

webdrivermanager compatibility with TravisCI build server

We are using TravisCI for all our builds which includes integration tests that are running against a browser. So, in our travis.yml file we include addons: chrome: stable to make sure that before the build starts, chrome browser will be installed…
0
votes
1 answer

Unable to access jarfile error when mounting a volume in a Docker

I have a Docker container that executes a Java application packaged as a fat-jar (i.e., shipped with all dependencies). The Dockerfile is public in GitHub, and the container is public in Docker Hub. Notice that I am using CMD in the Dockerfile…
Boni García
  • 4,618
  • 5
  • 28
  • 44
0
votes
2 answers

Cucumber Java (Maven) WebdriverManager (Bonigarcia) Not able to get URL from properties

Hi everybody: I'm trying to run Cucumber with Java (With Maven) and WebDriverManager (Bonigarcia) This is the tree of my project: ├── maven_selenium_cucumber.iml ├── pom.xml ├── src │   ├── main │   │   ├── java │   │   │   ├── common │   │  …
0
votes
0 answers

MySQLNonTransientConnectionException when connecting a Java program to my db in MySQL

import java.lang.*; import java.sql.DriverManager; import java.sql.Connection; import java.sql.SQLException; public class tentar { public static void main(String[] args) { Connection con=null; try { …
0
votes
1 answer

Does webdrivernanager dependency have an implementation that can be used to override the default browser download location?

I use WebDriverManager.chromedriver().setup(); for getting chrome property in my selenium tests. It works fine. I am trying to download a file by changing the default download location of chrome browser because I want to download the file to my java…
0
votes
1 answer

How to use Garcia's WebDriverManager with Spring's Request?

Currently I use ThreadLocal to keep WebDriver, but want to use Spring's Request instead with combination of Garcia's WebDriverManager. Any success with that?
0
votes
0 answers

Unable to launch Selenium tests on Chrome container in Selenoid using Webdriver Manager

I am using Webdriver manager to instantiate my drivers. I am launching tests cases on Chrome in an Ubuntu OS installed in a VirtualBox with Windows as a host machine. However, of late, when I launch my test case, it opens the url in chrome, stays…
automaticien
  • 153
  • 5
  • 14
0
votes
1 answer

Can't pull down chromedriver driver from google url

When attempting to pull down chrome drivers, the files cannot be located in https://chromedriver.storage.googleapis.com/. However, a quick search shows the driver file is actually in the google resource. I've had success pulling down the driver…
0
votes
2 answers

Gecko driver not executing test cases completely

Below is the dependencies version i am using : WebDriverManager-versioned 3.6.1 (Gecko driver versioned 0.24.0) Firefox versioned 68.0.1 64 bit Windows 10 Selenium version 3.141.59 I have a maven -selenium project with 10+ test classes in…
0
votes
2 answers

webdrivermanager.chromedriver().setup() ".", { expected

I am writing a class with the following code in a maven3.6.1 project. I am using JDK 1.8.201 and declared in maven plugins section to use JDK 1.8 for source and target. import org.openqa.selenium.WebDriver; import…
PraNuta
  • 629
  • 3
  • 12
  • 33
0
votes
1 answer

cannot find Opera binary error selenium+java using webdrivermanager

while running the below program in eclipse, got an error "cannot find Opera binary". import org.openqa.selenium.WebDriver; import org.openqa.selenium.opera.OperaDriver; import io.github.bonigarcia.wdm.WebDriverManager; public class Opera { public…
RVR
  • 651
  • 2
  • 6
  • 14