Получение исключения java.lang.IllegalAccessError: класс org.openqa.selenium.remote.http.RetryRequestJAVA

Программисты JAVA общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 Получение исключения java.lang.IllegalAccessError: класс org.openqa.selenium.remote.http.RetryRequest

Сообщение Anonymous »

Код: Выделить всё

package SelAuto;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class GetTitleandURL {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.chrome.driver", "/home/ar-in-u-262/Eclipse/chromedriver-linux64/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://games.pragmaticplaylive.net/authentication/authenticate.jsp");
System.out.println(driver.getTitle());
System.out.println(driver.getCurrentUrl());
driver.close();
}
}
Ошибка ниже:

Код: Выделить всё

Exception in thread "main" java.lang.IllegalAccessError: class org.openqa.selenium.remote.http.RetryRequest (in module org.seleniumhq.selenium.http) cannot access class dev.failsafe.function.CheckedFunction (in unnamed module @0x78b729e6) because module org.seleniumhq.selenium.http does not read unnamed module @0x78b729e6
at org.seleniumhq.selenium.http/org.openqa.selenium.remote.http.RetryRequest.\(RetryRequest.java:39)
at org.seleniumhq.selenium.http/org.openqa.selenium.remote.http.ClientConfig.\(ClientConfig.java:33)
at org.seleniumhq.selenium.chrome_driver/org.openqa.selenium.chrome.ChromeDriver.\(ChromeDriver.java:83)
at org.seleniumhq.selenium.chrome_driver/org.openqa.selenium.chrome.ChromeDriver.\(ChromeDriver.java:51)
at Introduction/SelAuto.GetTitleandURL.main(GetTitleandURL.java:13)
Я добавил файлы jar в путь к классам вместо пути к модулю. Но это не сработало.


Подробнее здесь: https://stackoverflow.com/questions/790 ... ium-remote
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «JAVA»