Skip to content

Commit

Permalink
[java] Make sure EventFiringWebElement implements all WebElement
Browse files Browse the repository at this point in the history
…methods (#11144)
  • Loading branch information
valfirst authored Oct 19, 2022
1 parent 0d82117 commit 9f123a4
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.openqa.selenium.OutputType;
import org.openqa.selenium.Point;
import org.openqa.selenium.Rectangle;
import org.openqa.selenium.SearchContext;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
Expand Down Expand Up @@ -415,11 +416,26 @@ public String getTagName() {
return element.getTagName();
}

@Override
public String getDomProperty(String name) {
return element.getDomProperty(name);
}

@Override
public String getAttribute(String name) {
return element.getAttribute(name);
}

@Override
public String getAriaRole() {
return element.getAriaRole();
}

@Override
public String getAccessibleName() {
return element.getAccessibleName();
}

@Override
public String getDomAttribute(String name) {
return element.getDomAttribute(name);
Expand All @@ -443,6 +459,11 @@ public String getText() {
return text;
}

@Override
public SearchContext getShadowRoot() {
return element.getShadowRoot();
}

@Override
public boolean isDisplayed() {
return element.isDisplayed();
Expand Down

0 comments on commit 9f123a4

Please sign in to comment.