LambdaTest Community

Find answers, support, and inspiration from other users

Questions
LambdaTest Community
Unanswered

Selenium c# Webdriver: Wait Until Element is Present

I want to make sure that an element is present before the webdriver starts doing stuff.

I'm trying to get something like this to work:

WebDriverWait wait = new WebDriverWait(driver, new TimeSpan(0,0,5));
wait.Until(By.Id("login"));

I'm mainly struggling how to setup up the anynomous function..

Up Vote Down Vote 0 Votes
Posted one month ago

Answers

125 Views
0 Answers
one month ago