0

Hello i want to set a command where tells to go to relative parent frame using Python & Selenium?

self driver go to relative parent frame <- this one

undetected Selenium
  • 151,581
  • 34
  • 225
  • 281
Enea Hysa
  • 1
  • 2

1 Answers1

0

To switch focus to the relative parent frame using Python & Selenium you can use:

driver.switch_to.parent_frame()

If the parent frame is the Top most level context you can also use:

driver.switch_to.default_content()
undetected Selenium
  • 151,581
  • 34
  • 225
  • 281