Exception in thread "main" java.lang.Error: Unresolved compilation problem:
FirefoxDriver cannot be resolved to a type
at gecko.Gecko_Driver.main(Gecko_Driver.java:11)
Instructor
Ashish Thakur Replied on 25/06/2019
Please cross check the imports. Have you added all the supplied jars in Selenium?
i have added the latest jars with the project now am gettig issue while running, will send you the screen short for the same asap. Please see below for the error statement as :
Error: Could not find or load main class org.apache.xalan.xsltc.cmdline.Compile
Caused by: java.lang.ClassNotFoundException: org.apache.xalan.xsltc.cmdline.Compile
Also while excuting the issue as "Run AS Java Appliaction" it is asking for the option to choose will send you the screen for the same
Please find the attachment for the issue with the window that I am facing while executing
this is a window is visible while running
this window
Error: Could not find or load main class wedriver03_JAVA.sample_class_01
Caused by: java.lang.ClassNotFoundException: wedriver03_JAVA.sample_class_01
Instructor
Ashish Thakur Replied on 27/06/2019
As I can see in the screenshot. You are using two different versions of Selenium in your project. Keep jars from only one version so that code should not get confused which jar to use.