@Before
fun setUp(){
Configuration.browser = "chrome"
System.setProperty("webdriver.chrome.driver", "полный путь до chromedriver.exe")
}
@Test
fun test() {
open("http://ya.ru")
}
java.lang.NoClassDefFoundError: org/openqa/selenium/InvalidArgumentException
at com.codeborne.selenide.webdriver.WebDriverFactory.<init>(WebDriverFactory.java:21)
at com.codeborne.selenide.drivercommands.LazyDriver.<init>(LazyDriver.java:33)
at com.codeborne.selenide.SelenideDriver.<init>(SelenideDriver.java:38)
at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.lambda$getSelenideDriver$0(WebDriverThreadLocalContainer.java:58)
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.getSelenideDriver(WebDriverThreadLocalContainer.java:57)
at com.codeborne.selenide.WebDriverRunner.getSelenideDriver(WebDriverRunner.java:96)
at com.codeborne.selenide.Selenide.open(Selenide.java:38)
at com.rencap.fxmm.webback.single.uat.ui.FirstTest.test(FirstTest.kt:17)
без сетапа история такая же. Я его поэтому и добавил)
java.lang.NoClassDefFoundError: org/openqa/selenium/InvalidArgumentException
at com.codeborne.selenide.webdriver.WebDriverFactory.<init>(WebDriverFactory.java:21)
at com.codeborne.selenide.drivercommands.LazyDriver.<init>(LazyDriver.java:33)
at com.codeborne.selenide.SelenideDriver.<init>(SelenideDriver.java:38)
at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.lambda$getSelenideDriver$0(WebDriverThreadLocalContainer.java:58)
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.getSelenideDriver(WebDriverThreadLocalContainer.java:57)
at com.codeborne.selenide.WebDriverRunner.getSelenideDriver(WebDriverRunner.java:96)
at com.codeborne.selenide.Selenide.open(Selenide.java:38)
at com.rencap.fxmm.webback.single.uat.ui.FirstTest.test(FirstTest.kt:16)