xpath定位动态iframe

使用xpath定位

driver.switch_to.frame(driver.find_element_by_xpath("//iframe[starts-with(@id, 'x-URS-iframe')]"))
 
 

相关文章: