Implement `WrapsElement` by `Select` element wrapper
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;
/**
* 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.
