After added the external JAR library, I still encountered 3 items errors from the Selenium code provided by Edureka.
Line1: import static org.testng.Assert.assertEquals;
Line7: import org.testng.annotations.Test;
Line 23: assertEquals(test, "This is about page. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.");
Errors: (3 items):
Description Resource Path Location Type
The import org.testng cannot be resolved App.java /DevOps/src line 1 Java Problem
The import org.testng cannot be resolved App.java /DevOps/src line 7 Java Problem
The method assertEquals(String, String) is undefined for the type App App.java /DevOps/src line 23 Java Problem
When I complied it, I encountered "Exception in thread "main" .java.lang.Error:Unresolved compilation problem:" (see attached)
Kindly advise how I can fix it as I have tried most of the jar files - selenium-java-3.141.59.jar, selenium-server-standalone-3.141.59.jar and junit-4.12.jar.
The method assertEquals(String, String) is undefined for the type App
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at App.main(App.java:23)