xpath定位动态iframe

使用xpath定位

driver.switch_to.frame(driver.find_element_by_xpath("//iframe[starts-with(@id, 'x-URS-iframe')]"))
 
 
原文地址:https://www.cnblogs.com/zhmiao/p/10551255.html