COMPILATION ERROR : package io.github.bonigarcia.wdm does not exist
See original GitHub issueHi,
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:
- Created 5 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was having
Changing scope to ‘compile’ from ‘test’ resolved the issue.
Changed scope to ‘compile’ from ‘test’ but still same error/issue.