question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

COMPILATION ERROR : package io.github.bonigarcia.wdm does not exist

See original GitHub issue

Hi,

When I build my maven project with mvn pre-clean clean install command

I get the below COMPILATION ERROR.

Note: I’m able to run the tests individually using the TestNG

Test Details: Selenium Version: 3.14.0 Maven Version: 3.5.2 webdrivermanager Version: 3.0.0 Browser: Internet explorer 11 OS: Windows 7 Enterprise 64-Bit

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[18,32] package io.github.bonigarcia.wdm does not exist
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[38,33] cannot find symbol
  symbol:   variable WebDriverManager
  location: class com.tcs.saf.base.WebDriverFactory
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[55,33] cannot find symbol
  symbol:   variable WebDriverManager
  location: class com.tcs.saf.base.WebDriverFactory
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[66,33] cannot find symbol
  symbol:   variable WebDriverManager
  location: class com.tcs.saf.base.WebDriverFactory
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[86,25] cannot find symbol
  symbol:   variable WebDriverManager
  location: class com.tcs.saf.base.WebDriverFactory
[INFO] 5 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.011 s
[INFO] Finished at: 2018-09-22T15:32:51-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project AW.Nxt_TCS_OSAF_SeleniumAutomationFramework: Compilation failure: Compilation failure: 
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[18,32] package io.github.bonigarcia.wdm does not exist
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[38,33] cannot find symbol
[ERROR]   symbol:   variable WebDriverManager
[ERROR]   location: class com.tcs.saf.base.WebDriverFactory
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[55,33] cannot find symbol
[ERROR]   symbol:   variable WebDriverManager
[ERROR]   location: class com.tcs.saf.base.WebDriverFactory
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[66,33] cannot find symbol
[ERROR]   symbol:   variable WebDriverManager
[ERROR]   location: class com.tcs.saf.base.WebDriverFactory
[ERROR] /C:/Selenium Automation Framework/awseleniumtestautomation/src/main/java/com/tcs/saf/base/WebDriverFactory.java:[86,25] cannot find symbol
[ERROR]   symbol:   variable WebDriverManager
[ERROR]   location: class com.tcs.saf.base.WebDriverFactory
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

5reactions
vishruth143commented, Sep 24, 2018

I was having

	<!-- https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager -->
	<dependency>
	    <groupId>io.github.bonigarcia</groupId>
	    <artifactId>webdrivermanager</artifactId>
	    <version>3.0.0</version>
	    <scope>test</scope>
	</dependency>

Changing scope to ‘compile’ from ‘test’ resolved the issue.

3reactions
savitaHpatilcommented, Jul 2, 2021

Changed scope to ‘compile’ from ‘test’ but still same error/issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebDriverManager The import io.github cannot be resolved
It appears during the runtime and test but not during compilation. The default scope is compile . Compile dependencies are available in all ......
Read more >
Issue regarding WebDriver Manager - Google Groups
... package io.github.bonigarcia.wdm does not exist. [ERROR] ... (default-compile) on project torenzowebsite: Compilation failure: Compilation failure:.
Read more >
webdrivermanager : 3.8.1 - io.github.bonigarcia - Maven Central
WebDriverManager - Automatic Selenium WebDriver binaries management in runtime for Java.
Read more >
WebDriver Manager gives error | Selenium Forum
package com.qtp.selenium;. import io.github.bonigarcia.wdm.WebDriverManager;. import org.junit.Test; import org.openqa.selenium.WebDriver;
Read more >
io.github.bonigarcia.wdm.WebDriverManager Maven / Gradle ...
io.github.bonigarcia.wdm.WebDriverManager maven / gradle build tool code. The class is part of the package ➦ Group: io.github.bonigarcia ➦ Artifact: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found