For the first time I work with Java and Intelij idea , and indeed with Selenide too. First used с# with the studio and visited Selenium . I did everything according to the instructions (improvisation) with the connection of the selenide library, everything compiles without errors, but the elementary test itself does not work, who can help please?

Error:

java.lang.NoClassDefFoundError: org / openqa / selenium / SearchContext

Maven and other incomprehensible "words" did not use, stupidly created a new project, hooked up an external library and wrote the code:

 import org.junit.jupiter.api.Test; import static com.codeborne.selenide.Selenide.*; public class MyTest { @Test public void firstTest(){ open("http://www.google.com"); } } 
  • if you add another command, for example: $(".lol").setValue("lolo"); it knocks out the error: Error:(10, 9) java: cannot access org.openqa.selenium.WebElement class file for org.openqa.selenium.WebElement not found - Awesome7997
  • library is not connected - Senior Pomidor
  • @SeniorPomidor if it were not connected - it would not compile ... - Awesome7997
  • here is the solution - Senior Pomidor
  • @SeniorPomidor these instructions aren’t appropriate because I don’t use Maven SBT Gradle Ivy - Awesome7997

0