phantomjs
一般提交时都会用submit,前提条件就是网页中有form表单;
在网页中无form表单的情况下,用submit()会报错:selenium.common.exceptions.NoSuchElementException: Message: {"errorMessage":"Element was not in a form, so could not submit.",
此时就需要用click()
2022-10-01 09:05:29
phantomjs
一般提交时都会用submit,前提条件就是网页中有form表单;
在网页中无form表单的情况下,用submit()会报错:selenium.common.exceptions.NoSuchElementException: Message: {"errorMessage":"Element was not in a form, so could not submit.",
此时就需要用click()