Last active
February 5, 2017 13:06
-
-
Save angelovstanton/233df00c67db073b417625f240c272fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IWebElement element = driver.FindElement(By.Id("id")); | |
element.Click(); | |
element.SendKeys("someText"); | |
element.Clear(); | |
element.Submit(); | |
string innerText = element.Text; | |
bool isEnabled = element.Enabled; | |
bool isDisplayed = element.Displayed; | |
bool isSelected = element.Selected; | |
IWebElement element = driver.FindElement(By.Id("id")); | |
SelectElement select = new SelectElement(element); | |
select.SelectByIndex(1); | |
select.SelectByText("Ford"); | |
select.SelectByValue("ford"); | |
select.DeselectAll(); | |
select.DeselectByIndex(1); | |
select.DeselectByText("Ford"); | |
select.DeselectByValue("ford"); | |
IWebElement selectedOption = select.SelectedOption; | |
IList<IWebElement> allSelected = select.AllSelectedOptions; | |
bool isMultipleSelect = select.IsMultiple; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment