DMBrowser.ElementByCssSelector Method
Definition
HTML element search is executed by CSS selectors. Accepts from 1 to 3 CSS selector string values. Supports CSS selectors and their combinations defined with CSS combinators.
public IHtmlElement Element(string CSSselector, TimeSpan timeout)
Parameters
CSSselector string timeout TimeSpanReturns
Examples
The following ElementByCssSelector method returns an <a> element that is a direct childe of a <p> element.
tab0.ElementByCssSelector("p > a").Click();