Код: Выделить всё
[main] ERROR io.qameta.allure.util.NamingUtils - Could not find parameter color
org.openqa.selenium.JavascriptException: javascript error: {"status":10,"value":"stale element not found in the current frame"}
Код: Выделить всё
public static JavascriptExecutor getJsExecutor() {
JavascriptExecutor js = (JavascriptExecutor) DriverManager.getDriver();
return js;
}
getJsExecutor().executeScript(
"console.log('selected element: ', window.pfSelected.state);"
);
Object response = getJsExecutor().executeScript("return window.pfSelected.state;");
Есть ли способ получить значение pfSelected.state из Selenium?
Подробнее здесь: https://stackoverflow.com/questions/785 ... ascriptexe
Мобильная версия