DMBrowser.Element Method

Definition

HTML tag is ignored, the search is executed by xpathes. Accepts from 1 to 3 Xpath string values.

public IHtmlElement Element(string xpath1, TimeSpan timeout)

Parameters

 xpath1  string

 timeout  TimeSpan

Returns

IHtmlElement

Examples

tab2.Element (“//SPAN[normalize-space()=\”Enter 5 digit zip code\”]/..”, “//LABEL”).Click ();