diff --git a/java/client/src/org/openqa/selenium/support/ui/Select.java b/java/client/src/org/openqa/selenium/support/ui/Select.java index 92791f50d831c..fb7d2d2a13fa6 100644 --- a/java/client/src/org/openqa/selenium/support/ui/Select.java +++ b/java/client/src/org/openqa/selenium/support/ui/Select.java @@ -20,6 +20,7 @@ import org.openqa.selenium.By; import org.openqa.selenium.NoSuchElementException; import org.openqa.selenium.WebElement; +import org.openqa.selenium.WrapsElement; import java.util.List; import java.util.StringTokenizer; @@ -28,7 +29,7 @@ /** * Models a SELECT tag, providing helper methods to select and deselect options. */ -public class Select implements ISelect { +public class Select implements ISelect, WrapsElement { private final WebElement element; private final boolean isMulti; @@ -55,6 +56,11 @@ public Select(WebElement element) { isMulti = (value != null && !"false".equals(value)); } + @Override + public WebElement getWrappedElement() { + return element; + } + /** * @return Whether this select element support selecting multiple options at the same time? This * is done by checking the value of the "multiple" attribute.