Skip to content

WebDriverSEd Tutorial

Assiance edited this page Feb 3, 2012 · 31 revisions

Creating a FireFox Profile
IWebDriver WebDriver = new FirefoxDriver();

Initializing an Div and Searching By Id within the WebDriver PageSource
DivSe fooDiv = new DivSe(WebDriver, By.Id("anId"));

Initializing an CheckBox and Searching By Id within the fooDiv
CheckBoxSe chkBox = new CheckBoxSe(fooDiv, By.Id("anId"));

Returns a list of all the Buttons inside the fooDiv;
var myButtons = fooDiv.Buttons;

Returns the first Button inside the fooDiv with an Id of bar;
var theButton = fooDiv.Button(i => i.Id == "bar");

Clone this wiki locally