You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
I've reworked the Wait classes to be more C#-like (using System.Funcs rather than a
custom function implementation, so lambdas and delegates can be used), added it as
revision 10830.
I'm not sure whether it's worth adding the syntactic sugar of ElementPresent. Currently,
you would wait by calling:
var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(3))
var element = wait.until(driver => driver.FindElement(By.Name("q")));
Attached is a patch which would let you call:
var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(3))
var element = wait.until(Element.IsPresent(By.Name("q")));
I don't think it's worth adding to the API, and I don't love it because the Is in the
name implies that it returns a bool, but I'm willing to be swayed.
Originally reported on Google Code with ID 1142
Reported by
binken.zou
on 2010-12-24 03:11:45- _Attachment: [Waiter.patch](https://storage.googleapis.com/google-code-attachments/selenium/issue-1142/comment-0/Waiter.patch)_ - _Attachment: [WebDriver.Support.Project.patch](https://storage.googleapis.com/google-code-attachments/selenium/issue-1142/comment-0/WebDriver.Support.Project.patch)_
The text was updated successfully, but these errors were encountered: