With selenium 3.6.0 (or smaller) and when using Firefox (with geckodriver) this driver.switch_to.active_element returns a dictionary which contains the a WebElement. Starting from Selenium 3.7.0 this is fixed and driver.switch_to.active_element returns directly a WebElement. Change the SeleniumLibrary:
- Use
driver.switch_to.active_element always
- Support both Selenium 3.6.0 and 3.7.0
With selenium 3.6.0 (or smaller) and when using Firefox (with geckodriver) this
driver.switch_to.active_elementreturns a dictionary which contains the aWebElement. Starting from Selenium 3.7.0 this is fixed anddriver.switch_to.active_elementreturns directly aWebElement. Change the SeleniumLibrary:driver.switch_to.active_elementalways