selenium自动化测试(python)
1.有嵌套框架时,运行driver.execute_script("")执行元素查找时且需要查找的元素在最外层frame,
2.先使用driver.switch_to_default()跳到最外层,
3.后使用driver.switch_to_frame("相应frame")来执行其他操作
1.有嵌套框架时,运行driver.execute_script("")执行元素查找时且需要查找的元素在最外层frame,
2.先使用driver.switch_to_default()跳到最外层,
3.后使用driver.switch_to_frame("相应frame")来执行其他操作