-1

Please answer how to switch to new pop window from the existing webpage window

Rahul Raj
  • 1
  • 3

1 Answers1

0
iframe = driver.find_element_by_xpath("your_xpath_for_Iframe")

driver.switch_to.frame(iframe)

You can switch back to the default content

driver.switch_to.default_content()
Norayr Sargsyan
  • 1,737
  • 1
  • 12
  • 26