We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0ff8df commit f1cb54fCopy full SHA for f1cb54f
java/client/src/org/openqa/selenium/remote/RemoteWebElement.java
@@ -295,6 +295,10 @@ public boolean isDisplayed() {
295
Object value = execute(DriverCommand.IS_ELEMENT_DISPLAYED(id))
296
.getValue();
297
try {
298
+ // See https://github.com/SeleniumHQ/selenium/issues/9266
299
+ if (value == null) {
300
+ return false;
301
+ }
302
return (Boolean) value;
303
} catch (ClassCastException ex) {
304
throw new WebDriverException("Returned value cannot be converted to Boolean: " + value, ex);
0 commit comments