You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select Frame / Unselect Frame keywords are using deprecated switch_to_frame / switch_to_default_content
actual warning message:
/usr/lib/python2.6/site-packages/selenium/webdriver/remote/webdriver.py:536: DeprecationWarning: use driver.switch_to.frame instead
/usr/lib/python2.6/site-packages/selenium/webdriver/remote/webdriver.py:542: DeprecationWarning: use driver.switch_to.default_content instead
proposed fix:
change in keyword Select Frame
self._current_browser().switch_to_frame(element) into self._current_browser().switch_to.frame(element)
change in keyword Unselect Frame
self._current_browser().switch_to_default_content()
self._current_browser().switch_to.default_content()
The text was updated successfully, but these errors were encountered:
there are some more locations which are using switch_to :
_element.py: browser.switch_to_frame(element)
_element.py: browser.switch_to_default_content()
_element.py: browser.switch_to_default_content()
_element.py: browser.switch_to_frame(frame)
_element.py: browser.switch_to_default_content()
_formelement.py: alert = self._current_browser().switch_to_alert()
_javascript.py: alert = self._current_browser().switch_to_alert()
_javascript.py: alert = self._current_browser().switch_to_alert()
as indicated fix is to replace underscore (_) with dot (.) after the text switch_to
pekkaklarck
changed the title
deprecation warning for select_frame / unselect_frame
Deprecation warning from Selenium when using Select/Unselect FrameSep 26, 2017
Select Frame / Unselect Frame keywords are using deprecated switch_to_frame / switch_to_default_content
actual warning message:
/usr/lib/python2.6/site-packages/selenium/webdriver/remote/webdriver.py:536: DeprecationWarning: use driver.switch_to.frame instead
/usr/lib/python2.6/site-packages/selenium/webdriver/remote/webdriver.py:542: DeprecationWarning: use driver.switch_to.default_content instead
proposed fix:
change in keyword Select Frame
self._current_browser().switch_to_frame(element) into self._current_browser().switch_to.frame(element)
change in keyword Unselect Frame
self._current_browser().switch_to_default_content()
self._current_browser().switch_to.default_content()
The text was updated successfully, but these errors were encountered: