Skip to content

Commit b55bfca

Browse files
committed
Fix ImprovedRemoteWebElement not using correct search context
1 parent b5207fe commit b55bfca

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-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.8
2+
* Fix `ImprovedRemoteWebElement` not using correct search context
3+
14
# 1.0.7
25
* Added `nativeClick` method which executes the original/upstream click
36
* Updated dependencies

selenium-elements/src/main/java/software/xdev/selenium/elements/remote/ImprovedRemoteWebElement.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package software.xdev.selenium.elements.remote;
1717

1818
import org.openqa.selenium.ElementNotInteractableException;
19+
import org.openqa.selenium.SearchContext;
1920
import org.openqa.selenium.WebDriver;
2021
import org.openqa.selenium.remote.RemoteWebElement;
2122
import org.slf4j.Logger;
@@ -65,6 +66,12 @@ public WebDriver getWebDriver()
6566
return this.getWrappedDriver();
6667
}
6768

69+
@Override
70+
public SearchContext determineSearchContext(final WebDriver webDriver)
71+
{
72+
return this;
73+
}
74+
6875
@Override
6976
public void click()
7077
{

0 commit comments

Comments
 (0)