arsenic.webdriver
¶
-
class
arsenic.webdriver.
WebDriver
¶ Class representing a webdriver. You should not create instances of this class yourself, instead let
arsenic.get_session()
orarsenic.start_session()
create and manage one for you.-
wait
(timeout, func, *exceptions)¶ Coroutine which waits for up to
timeout
seconds for the coroutine functionfunc
to return a truthy value, calling it repeatedly.If the coroutine function
func
raises an exception given inexceptions
, it is ignored.If
func
returns a truthy value, it is returned to the caller of this method.Parameters: - timeout (int) – Timeout in seconds.
- func (Coroutine function taking no arguments and returning a truthy value if the condition is met.) – Callback which checks if the condition is met.
- exceptions (Exception) – Optional exceptions to ignore.
-