我正在使用selenium/python来抓取数据(学生姓名和班级等)并输入反馈信息。除了将反馈本身输入到textarea元素之外,一切都很好。Selenium在使用click()或send_keys()时给出了一个send_keys异常。然后我尝试使用JS命令,例如:
comment = 'Thanks for coming to the lesson. Well done today!'self.driver.execute_scrip
嘿,我试图使用PythonSelenium到Instagram中的文本区域'send_keys‘,而im Hey错误:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//text
如何使用Selenium获取我在文本区域中输入的文本,在Chrome和Mozilla中,在开发人员选项中输入的文本在IE中在开发人员部分中可见。使用gettext(),我可以从IE获取文本,但对于Chrome和Mozilla,我什么也得不到。string text = by.xpath("//textarea[