contains
The command to get a single Element containing the given text.
Syntax
Usage
correct usage
incorrect usage
Arguments
text (str)
- The text to look fortimeout=None (int)
- The number of seconds for this command to succeed.timeout=None
will use the default wait_time in pylenium.jsontimeout=0
will poll the DOM immediately with no waitAny value greater than zero will override the default wait_time
It does not need to be an exact match
Yields
Element - The first element that is found, even if multiple elements match the query
Last updated