
click_link=self.driver.find_element_by_xpath('//form[@id="form"]').click()
# time.sleep(5)
link=self.driver.find_element_by_xpath('//form/input[4]/@value')报错如下
selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: The result of the xpath expression "//form/input[4]/@value" is: [object Attr]. It should be an element.
(Session info: headless chrome=66.0.3359.181)
红颜莎娜
慕桂英3389331
随时随地看视频慕课网APP
相关分类