Skip to content

Commit e410f90

Browse files
committed
ImprovedWebElement#hasAttribute now waits for loading operations to complete (now calls prepareForOperation as getProperty already does)
1 parent f3ea204 commit e410f90

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.0.4
2+
* ``ImprovedWebElement#hasAttribute`` now waits for loading operations to complete (now calls ``prepareForOperation`` as ``getProperty`` already does)
3+
14
# 1.0.3
25
* Removed reflection calls in ``CustomizableJsonToWebElementConverter`` as https://github.com/SeleniumHQ/selenium/issues/15884 was fixed #11
36
* Selenium version 4.34+ is required

selenium-elements/src/main/java/software/xdev/selenium/elements/ImprovedWebElement.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ default void dispatchCustomEvent(
109109

110110
default boolean hasAttribute(final String attribute)
111111
{
112+
this.prepareForOperation();
112113
return (boolean)this.callFunction("hasAttribute", attribute);
113114
}
114115

0 commit comments

Comments
 (0)