ZennoLab Assemblies Documentation
ParseByCssSelector(Tab,SourceType,String,String,Boolean) Method
Example 
ZennoLab.CommandCenter Namespace > ZennoPoster.Parser Class > ParseByCssSelector Method : ParseByCssSelector(Tab,SourceType,String,String,Boolean) Method

Type: Zennolab.CommandCenter.Tab

The tab to parse.

Type: ZennoLab.InterfacesLibrary.Enums.Parser.SourceType

Source type. Parse as DOM or Html.

Type: System.String

CSS-selector.

Type: System.String

The attribute to take.

Type: System.Boolean

True if parse only visible elements; otherwise, false. Default value is true.

Parse page by CSS-selector.
Syntax

Parameters

tab

Type: Zennolab.CommandCenter.Tab

The tab to parse.

sourceType

Type: ZennoLab.InterfacesLibrary.Enums.Parser.SourceType

Source type. Parse as DOM or Html.

cssSelector

Type: System.String

CSS-selector.

attribute

Type: System.String

The attribute to take.

onlyVisible

Type: System.Boolean

True if parse only visible elements; otherwise, false. Default value is true.

Return Value

Type: System.Collections.Generic.IEnumerable

The result of parsing data. Returns list of attributes.

Remarks

Example
The following example shows call the ParseByCssSelector method.
var resultParseByCssSelector = ZennoPoster.Parser.ParseByCssSelector(instance.ActiveTab, ZennoLab.InterfacesLibrary.Enums.Parser.SourceType.Dom, "body", "innerText");
$resultParseByCssSelector = ZennoPoster\Parser::ParseByCssSelector(instance.ActiveTab, ZennoLab\InterfacesLibrary\Enums\Parser\SourceType::Dom, "body", "innerText");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoPoster.Parser Class
ZennoPoster.Parser Members
Overload List
Parse by XPath method.