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
timeoutseconds for the coroutine functionfuncto return a truthy value, calling it repeatedly.If the coroutine function
funcraises an exception given inexceptions, it is ignored.If
funcreturns 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.
-