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
  • 183,867
  • 41
  • 278
  • 352
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
  • 183,867
  • 41
  • 278
  • 352