我选择了一个搜索按钮:
<input type="button" name="Submit" value="Submit"
onclick="FnAddSearchParameters();" class="myButton rightButton buttonGroup">
使用chrome驱动程序,我一直试图点击按钮,但没有效果。常规的button.click()
函数只突出显示按钮,但不完成onclick操作。你知道吗
使用execute_script("FnAddSearchParameters();")
我得到错误语句
selenium.common.exceptions.WebDriverException:
Message: unknown error: window.opener.FnAddAISearchParameters is not a function
关于为什么要将AI
添加到函数调用中有什么想法吗?有办法吗?你知道吗
实际上,您使用
execute_script
执行错误,您应该尝试以下操作:相关问题 更多 >
编程相关推荐