public class Select
extends org.openqa.selenium.support.ui.Select
Select
in order to fix some bugs.
Note that this select might not be work properly within modals since it's hitting Escape key which close the modal
by default.Constructor and Description |
---|
Select(org.openqa.selenium.WebElement element)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
selectByIndex(int index) |
void |
selectByValue(String value) |
void |
selectByVisibleText(String text) |
public Select(org.openqa.selenium.WebElement element)
element
- SELECT element to wraporg.openqa.selenium.support.ui.UnexpectedTagNameException
- when element is not a SELECTpublic void selectByIndex(int index)
selectByIndex
in interface org.openqa.selenium.support.ui.ISelect
selectByIndex
in class org.openqa.selenium.support.ui.Select
public void selectByValue(String value)
selectByValue
in interface org.openqa.selenium.support.ui.ISelect
selectByValue
in class org.openqa.selenium.support.ui.Select
public void selectByVisibleText(String text)
selectByVisibleText
in interface org.openqa.selenium.support.ui.ISelect
selectByVisibleText
in class org.openqa.selenium.support.ui.Select
Copyright © 2004–2021 XWiki. All rights reserved.