SearchContextKt

public final class SearchContextKt
public final class SearchContextKt

Functions

Link copied to clipboard
public final static Element findByClassName(SearchContext $self, String className)
public final static Element findByClassName(SearchContext $self, String className)

Returns the first Element found in the current search context by the given className, if any.

Link copied to clipboard
public final static Element findByCssSelector(SearchContext $self, String cssSelector)
public final static Element findByCssSelector(SearchContext $self, String cssSelector)

Returns the first Element found in the current search context by the given cssSelector, if any.

Link copied to clipboard
public final static Element findById(SearchContext $self, String id)
public final static Element findById(SearchContext $self, String id)

Returns the first Element found in the current search context by the given id, if any.

Link copied to clipboard
public final static Element findByName(SearchContext $self, String name)
public final static Element findByName(SearchContext $self, String name)

Returns the first Element found in the current search context by the given name, if any.

Link copied to clipboard
public final static Element findByTagName(SearchContext $self, String tagName)
public final static Element findByTagName(SearchContext $self, String tagName)

Returns the first Element found in the current search context by the given tagName, if any.

Link copied to clipboard
public final static Element getByClassName(SearchContext $self, String className)
public final static Element getByClassName(SearchContext $self, String className)

Returns the first Element found in the current search context by the given className.

Link copied to clipboard
public final static Element getByCssSelector(SearchContext $self, String cssSelector)
public final static Element getByCssSelector(SearchContext $self, String cssSelector)

Returns the first Element found in the current search context by the given cssSelector.

Link copied to clipboard
public final static Element getById(SearchContext $self, String id)
public final static Element getById(SearchContext $self, String id)

Returns the first Element found in the current search context by the given id.

Link copied to clipboard
public final static Element getByName(SearchContext $self, String name)
public final static Element getByName(SearchContext $self, String name)

Returns the first Element found in the current search context by the given name.

Link copied to clipboard
public final static Element getByTagName(SearchContext $self, String tagName)
public final static Element getByTagName(SearchContext $self, String tagName)

Returns the first Element found in the current search context by the given tagName.