Skip to content

Deprecation warning from Selenium when using Select/Unselect Frame #592

@ghost

Description

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()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions