Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/353.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单击并提交数据_Python_Selenium - Fatal编程技术网

如何使用Python单击并提交数据

如何使用Python单击并提交数据,python,selenium,Python,Selenium,我是HTML新手,尝试使用Pyhon单击web按钮。 在按钮上,我找到了下面的代码。 可能在单击按钮之后,它会发送“发送('97662','') 所有按钮的名称都是相同的。但信息是不同的 driver = webdriver.Chrome('C:/chromedriver.exe') driver.get('https://www.afteredu.kr/register/subscribe1.aspsubject_do=1.%EC%9B%94%EC%9A%94%EC%9D%BC%EC%98%8

我是HTML新手,尝试使用Pyhon单击web按钮。 在按钮上,我找到了下面的代码。 可能在单击按钮之后,它会发送“发送('97662','')

所有按钮的名称都是相同的。但信息是不同的

driver = webdriver.Chrome('C:/chromedriver.exe')
driver.get('https://www.afteredu.kr/register/subscribe1.aspsubject_do=1.%EC%9B%94%EC%9A%94%EC%9D%BC%EC%98%81%EC%97%AD&inning=2018-3%EA%B8%B0')
elem = driver.find_element_by_class_name("btn_decision")
elem.click()

提前感谢您的建议。

您必须单击“消失”button@Vince用相关的HTML更新问题
selenium.common.exceptions.NoSuchElementException: Message: no such element: 
Unable to locate element: {"method":"class name","selector":"btn_decision"}
driver = webdriver.Chrome('C:/chromedriver.exe')
driver.get('https://www.afteredu.kr/register/subscribe1.aspsubject_do=1.%EC%9B%94%EC%9A%94%EC%9D%BC%EC%98%81%EC%97%AD&inning=2018-3%EA%B8%B0')
elem = driver.find_element_by_class_name("btn_decision")
elem.click()