Click or drag to resize

ISearchContext.GetElementsByCssSelector Method

Finds all IElement objects in the current search context by the given cssSelector.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.24.2
Syntax
C#
IEnumerable<IElement> GetElementsByCssSelector(
	string cssSelector
)

Parameters

cssSelector
Type: System.String
The CSS selector.

Return Value

Type: IEnumerable<IElement>
A collection of the IElement objects found in the current search context by the given cssSelector or an empty collection if no elements were found.
Exceptions
ExceptionCondition
ArgumentException The cssSelector is null, empty or contains only blank characters.
ObjectDisposedExceptionThe ISearchContext has already been disposed.
See Also