如何使用python selenium webdriver单击框架中的按钮
我想点击阴影按钮,但它在框架内,似乎在另一个框架内。我怎么做如何使用python selenium webdriver单击框架中的按钮,python,selenium,frame,Python,Selenium,Frame,我想点击阴影按钮,但它在框架内,似乎在另一个框架内。我怎么做 进入嵌套的iFrame,然后单击带有文本Continuar的按钮 wait = WebDriverWait(driver, 10) wait.until(ec.frame_to_be_available_and_switch_to_it((By.XPATH,"//frame[@name='reloj']" ))) wait.until(ec.frame_to_be_available_and_switch_to_i
进入嵌套的iFrame,然后单击带有文本Continuar的按钮
wait = WebDriverWait(driver, 10)
wait.until(ec.frame_to_be_available_and_switch_to_it((By.XPATH,"//frame[@name='reloj']" )))
wait.until(ec.frame_to_be_available_and_switch_to_it((By.XPATH,"//frame[@name='transicion']")))
wait.until(ec.frame_to_be_available_and_switch_to_it((By.XPATH,"//button[text()='Continuar']"))).click()
进口
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
到目前为止你试过什么?