lieh222
2017-07-31 10:15:48 +08:00
刚看了 python 的 selenium help,跟 java 应该差不多吧
execute_script(self, script, *args) method of selenium.webdriver.chrome.webdriver.WebDriver instance
Synchronously Executes JavaScript in the current window/frame.
:Args:
- script: The JavaScript to execute.
- \*args: Any applicable arguments for your JavaScript.
:Usage:
driver.execute_script('document.title')
execute_script 第一个参数是函数,后边可以有多个函数参数,你试试 driver.execute_script("amsSubmit “,"116612,379752") 这样