I get script returns unexpected result error in selenium, after update v76
browser.FindElements(By.LinkText("TEST"));
unknown error: script returns unexpected result (Session info: chrome=76.0.3809.87)
I get script returns unexpected result error in selenium, after update v76
browser.FindElements(By.LinkText("TEST"));
unknown error: script returns unexpected result (Session info: chrome=76.0.3809.87)
This work for me, i changed my code from:
select.selectByValue(value)
to:
public void selectOptionByValue(Select select, String value) {
if (select == null || value == null) {
return;
}
var options = select.getOptions();
if (options == null) {
return;
}
for (var option : options) {
if (value.equals(option.getAttribute("value"))) {
option.click();
break;
}
}
}