-
-
Save henesgokdag/e6336892f20916e7214a2efad2b1452b 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
public void Wait(int second) | |
{ | |
Thread.Sleep(1000 * second); | |
} | |
public void ClickElement(IWebElement element) | |
{ | |
webElement = wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(element)); | |
element.Click(); | |
} | |
public void SetText(IWebElement element, string text) | |
{ | |
webElement = wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementToBeClickable(element)); | |
element.SendKeys(text); | |
element.SendKeys(Keys.Tab); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment