Click or drag to resize

ISearchContext Interface

The base interface for search that is implemented by the DOM objects that provide search mechanisms.

Namespace:  DotNetBrowser.Dom
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.16.1
Syntax
C#
public interface ISearchContext : IAutoDisposable

The ISearchContext type exposes the following members.

Properties
  NameDescription
Public propertyIsDisposed
Indicates if the object is already disposed.
(Inherited from IAutoDisposable.)
Top
Methods
  NameDescription
Public methodGetElementByClassName
Finds the first IElement object in the current search context by the given className.
Public methodGetElementByCssSelector
Finds the first IElement object in the current search context by the given CSS selector.
Public methodGetElementById
Finds the first IElement object in the current search context by the given id.
Public methodGetElementByName
Finds the first IElement object in the current search context by the given name.
Public methodGetElementByTagName
Finds the first IElement object in the current search context by the given tag name.
Public methodGetElementsByClassName
Finds all IElement objects in the current search context by the given className.
Public methodGetElementsByCssSelector
Finds all IElement objects in the current search context by the given cssSelector.
Public methodGetElementsByName
Finds all IElement objects in the current search context by the given name.
Public methodGetElementsByTagName
Finds all IElement objects in the current search context by the given tag name.
Top
Events
  NameDescription
Public eventDisposed
Occurs when the object has been disposed.
(Inherited from IAutoDisposable.)
Top
See Also