C# Class FluentSharp.WatiN.Extra_Watin__Extension_Methods

Show file Open project: TeamMentor/Master

Public Methods

Method Description
click ( this watinIe, string linkOrButtonRef ) : WatiN_IE

tries to find a link or button using the provided identified (linkOrButtonRef) and click on it Returns the original watinIe object so that multiple clicks can be chained Returns null if the link or button was not found

open ( this watinIe, Uri uri ) : WatiN_IE
to_Button ( this element ) : Button
to_Field ( this element ) : TextField
to_Link ( this element ) : Link
wait_For_Element_InnerHtml ( this watinIe, string elementName, int maxWait = 1000 ) : WatiN_IE

Wait for an element to have a value in its InnerHtml Returns null if the element was not found

wait_For_Element_InnerText ( this watinIe, string elementName, string expectedValue, int maxWait = 1000 ) : WatiN_IE

Wait for an element innerText to match the expectedValue value Note: the comparison is not CaseSensitive and trim is applied to the search values Returns null if the element was not found or if it was found but the values didn't match

wait_For_Link ( this watinIe, string nameOrId ) : WatiN_IE
wait_For_Uri ( this watinIe, Uri expectedUri, int maxWait = 1000 ) : WatiN_IE
wait_For_Url ( this watinIe, string expectedUrl, int maxWait = 1000 ) : WatiN_IE

Method Details

click() public static method

tries to find a link or button using the provided identified (linkOrButtonRef) and click on it Returns the original watinIe object so that multiple clicks can be chained Returns null if the link or button was not found
public static click ( this watinIe, string linkOrButtonRef ) : WatiN_IE
watinIe this
linkOrButtonRef string
return WatiN_IE

open() public static method

public static open ( this watinIe, Uri uri ) : WatiN_IE
watinIe this
uri System.Uri
return WatiN_IE

to_Button() public static method

public static to_Button ( this element ) : Button
element this
return Button

to_Field() public static method

public static to_Field ( this element ) : TextField
element this
return TextField

to_Link() public static method

public static to_Link ( this element ) : Link
element this
return Link

wait_For_Element_InnerHtml() public static method

Wait for an element to have a value in its InnerHtml Returns null if the element was not found
public static wait_For_Element_InnerHtml ( this watinIe, string elementName, int maxWait = 1000 ) : WatiN_IE
watinIe this
elementName string
maxWait int
return WatiN_IE

wait_For_Element_InnerText() public static method

Wait for an element innerText to match the expectedValue value Note: the comparison is not CaseSensitive and trim is applied to the search values Returns null if the element was not found or if it was found but the values didn't match
public static wait_For_Element_InnerText ( this watinIe, string elementName, string expectedValue, int maxWait = 1000 ) : WatiN_IE
watinIe this
elementName string
expectedValue string
maxWait int
return WatiN_IE

wait_For_Link() public static method

public static wait_For_Link ( this watinIe, string nameOrId ) : WatiN_IE
watinIe this
nameOrId string
return WatiN_IE

wait_For_Uri() public static method

public static wait_For_Uri ( this watinIe, Uri expectedUri, int maxWait = 1000 ) : WatiN_IE
watinIe this
expectedUri System.Uri
maxWait int
return WatiN_IE

wait_For_Url() public static method

public static wait_For_Url ( this watinIe, string expectedUrl, int maxWait = 1000 ) : WatiN_IE
watinIe this
expectedUrl string
maxWait int
return WatiN_IE