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 70083e8 commit 4f8c792Copy full SHA for 4f8c792
java/client/src/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java
@@ -18,6 +18,8 @@
18
19
package org.openqa.selenium.htmlunit;
20
21
+import com.google.common.base.Throwables;
22
+
23
import org.openqa.selenium.By;
24
import org.openqa.selenium.Dimension;
25
import org.openqa.selenium.ElementNotVisibleException;
@@ -136,6 +138,7 @@ public void click() {
136
138
try {
137
139
verifyCanInteractWithElement();
140
} catch (InvalidElementStateException e) {
141
+ Throwables.propagateIfInstanceOf(e, ElementNotVisibleException.class);
142
// Swallow disabled element case
143
// Clicking disabled elements should still be passed through,
144
// we just don't expect any state change
0 commit comments