DMBrowser.TextField Method

Definition

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

public IHtmlElement TextField(string xpath1, TimeSpan timeout)

Parameters

 xpath1  string

 timeout  TimeSpan

Returns

IHtmlElement

Examples

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 ();