Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/323.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用python selenium webdriver单击框架中的按钮_Python_Selenium_Frame - Fatal编程技术网

如何使用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

到目前为止你试过什么?