[java] Make sure `EventFiringWebElement` implements all `WebElement` methods
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;
@@ -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);
@@ -443,6 +459,11 @@ public String getText() {
return text;
}
+ @Override
+ public SearchContext getShadowRoot() {
+ return element.getShadowRoot();
+ }
+
@Override
public boolean isDisplayed() {
return element.isDisplayed();
