Skip to content
yngvebn edited this page Mar 13, 2013 · 2 revisions

Instantiate the driver

IWebDriver driver = new InternetExplorerDriver();

Get all the links on the current page

var allLinks = driver.Document().Links;

Get a div with a specific ID

driver.Document().Div("mydiv");

Wait for something

driver.Document().TextField("someTextbox").WaitUntil(c => !string.IsNullOrEmpty(c.Value));

Waits until the TextField with id "someTextbox" has some text in it

Clone this wiki locally