Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

how to resolve java.lang.Error: Unresolved compilation problems

Solved 2 Answers 222 Views Programming
1 2

java.lang.Error: Unresolved compilation problems:

                The type org.openqa.selenium.remote.http.HttpClient$Factory cannot be resolved. It is indirectly referenced from required .class files

                The type org.openqa.selenium.remote.service.DriverService$Builder cannot be resolved. It is indirectly referenced from required .class files


                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(

                at java.lang.reflect.Method.invoke(

                at org.testng.internal.MethodInvocationHelper.invokeMethod(

                at org.testng.internal.Invoker.invokeMethod(

                at org.testng.internal.Invoker.invokeTestMethod(

                at org.testng.internal.Invoker.invokeTestMethods(

                at org.testng.internal.TestMethodWorker.invokeTestMethods(


                at java.util.concurrent.ThreadPoolExecutor.runWorker(

                at java.util.concurrent.ThreadPoolExecutor$


2 Answers

Best answer
Try adding below lines to pom.xml






answered by (151 points)
selected by
You can even try upgrading your Selenium-Java
answered by (151 points)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.