DMBrowser.TextField Method

Definition

Searches for the <textarea> and <input type=”text”> <input> HTML elements. Accepts from 1 to 3 Xpath string values.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
public IHtmlElement TextField(string xpath1, TimeSpan timeout)
public IHtmlElement TextField(string xpath1, TimeSpan timeout)
public IHtmlElement TextField(string xpath1, TimeSpan timeout)

Parameters

 xpath1  string

 timeout  TimeSpan

Returns

IHtmlElement

Examples

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
tab1.TextField ("//INPUT[@ID=\"4\"]", "//LABEL[normalize-space()=\"Phone number *\"]/../../preceding-sibling::DIV[2]//INPUT[@TYPE=\"text\"]", "//LABEL[normalize-space()=\"Email address *\"]/../../preceding-sibling::DIV[3]//INPUT[@TYPE=\"text\"]").Click ();
tab1.TextField ("//INPUT[@ID=\"4\"]", "//LABEL[normalize-space()=\"Phone number *\"]/../../preceding-sibling::DIV[2]//INPUT[@TYPE=\"text\"]", "//LABEL[normalize-space()=\"Email address *\"]/../../preceding-sibling::DIV[3]//INPUT[@TYPE=\"text\"]").Click ();
tab1.TextField ("//INPUT[@ID=\"4\"]", "//LABEL[normalize-space()=\"Phone number *\"]/../../preceding-sibling::DIV[2]//INPUT[@TYPE=\"text\"]", "//LABEL[normalize-space()=\"Email address *\"]/../../preceding-sibling::DIV[3]//INPUT[@TYPE=\"text\"]").Click ();