Module Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias If Call AttributeLoad AttributeLoad NameLoad attr attr Str body ImportFrom alias identifier Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Return Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body TryExcept body If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad Num For NameStore NameLoad body TryExcept body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body If CompareEq NameLoad SubscriptLoad NameLoad Index Num body Raise If UnaryOpNot Call AttributeLoad NameLoad attr body Raise decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body Return NameLoad decorator_list decorator_list
N/A N/A logging N/A os N/A LOG N/A N/A logging getLogger __name__ selenium.common exceptions selenium.webdriver.common by selenium.webdriver.common desired_capabilities dc selenium.webdriver.remote webelement N/A N/A N/A N/A os environ get SELENIUM_PHANTOMJS N/A selenium.webdriver PhantomJS WebDriver N/A desired_capabilities N/A N/A dc DesiredCapabilities PHANTOMJS N/A horizon.test.firefox_binary WebDriver N/A desired_capabilities N/A N/A dc DesiredCapabilities FIREFOX WrapperFindOverride N/A object N/A N/A Mixin for overriding find_element methods. find_element N/A N/A self by value N/A N/A N/A by By ID None N/A N/A web_el N/A N/A N/A super WrapperFindOverride self find_element by value N/A N/A WebElementWrapper N/A web_el parent N/A web_el id N/A by value self N/A find_elements N/A N/A self by value N/A N/A N/A by By ID None N/A N/A web_els N/A N/A N/A super WrapperFindOverride self find_elements by value N/A result N/A N/A N/A index web_el N/A enumerate web_els N/A N/A N/A N/A result append N/A WebElementWrapper N/A web_el parent N/A web_el id N/A by value self index N/A result N/A N/A WebElementWrapper N/A WrapperFindOverride N/A webelement WebElement N/A N/A WebElement class wrapper.

    WebElement wrapper that catches the StaleElementReferenceException and
    tries to reload the element by sending request to its source element
    (element that created actual element) for reload, in case that source
    element needs to be reloaded as well, it asks its parent till web
    driver is reached. In case driver was reached and did not manage to
    find the element it is probable that programmer made a mistake and
    actualStaleElementReferenceException is raised.
     __init__ N/A N/A self parent id_ locator src_element index N/A None N/A N/A N/A N/A N/A super WebElementWrapper self __init__ parent id_ N/A N/A self locator locator N/A N/A self src_element src_element N/A N/A self index index N/A reload_request N/A N/A self locator index N/A None N/A N/A N/A N/A N/A index None N/A N/A web_els N/A N/A N/A self src_element find_elements locator N/A web_el N/A web_els N/A index N/A N/A web_el N/A N/A N/A self src_element find_element locator N/A N/A N/A N/A N/A exceptions NoSuchElementException IndexError N/A N/A False N/A web_el N/A _reload_element N/A N/A self N/A N/A N/A Method for starting reload process on current instance. N/A web_el N/A N/A N/A self src_element reload_request N/A self locator N/A self index N/A N/A web_el N/A N/A False N/A N/A self _parent N/A web_el parent N/A N/A self _id N/A web_el id N/A True N/A _execute N/A N/A self command params N/A None N/A N/A Overriding in order to catch StaleElementReferenceException. N/A repeat N/A range 2 N/A i repeat N/A N/A N/A N/A N/A N/A N/A super WebElementWrapper self _execute command params N/A N/A N/A N/A exceptions StaleElementReferenceException N/A N/A N/A i N/A repeat N/A -1 N/A N/A N/A N/A N/A N/A self _reload_element N/A N/A N/A N/A WebDriverWrapper N/A WrapperFindOverride WebDriver N/A N/A Wrapper for webdriver to return WebElementWrapper on find_element.
     reload_request N/A N/A self locator index N/A N/A N/A N/A N/A N/A index None N/A N/A web_els N/A N/A self find_elements locator N/A web_el N/A web_els N/A index N/A N/A web_el N/A N/A self find_element locator N/A web_el N/A N/A N/A N/A N/A exceptions NoSuchElementException IndexError N/A N/A False N/A N/A