Теперь я пробую javascriptexecutor < /code> вещь: < /p>
Код: Выделить всё
String innerText = (String) ((JavascriptExecutor) driver).executeScript("return arguments[0].innerText", selectedOption);
System.out.println(innerText);
Подробнее здесь: https://stackoverflow.com/questions/250 ... -webdriver
Мобильная версия