Selenium API

'Selenium' API允许设置和查看所需的网络驱动程序和二进制文件的路径。

API actions/views

名称 类型 参数 描述
getBrowserArguments 查看 browser* Gets the browser arguments.
optionChromeBinaryPath 查看 Returns the current path to Chrome binary
optionChromeDriverPath 查看 Returns the current path to ChromeDriver
optionFirefoxBinaryPath 查看 Returns the current path to Firefox binary
optionFirefoxDriverPath view Returns the current path to Firefox driver (geckodriver)
addBrowserArgument action browser* argument* enabled Adds a browser argument.
launchBrowser action browser* Launches a browser proxying through ZAP, for manual usage.
removeBrowserArgument action browser* argument* Removes a browser argument.
setBrowserArgumentEnabled action browser* argument* enabled* Sets whether or not a browser argument is enabled.
setOptionChromeBinaryPath action String* Sets the current path to Chrome binary
setOptionChromeDriverPath action String* Sets the current path to ChromeDriver
setOptionFirefoxBinaryPath action String* Sets the current path to Firefox binary
setOptionFirefoxDriverPath action String* Sets the current path to Firefox driver (geckodriver)
Starred parameters are mandatory

See also

     Selenium for an overview of the Selenium add-on
     Options Selenium screen for an overview of the Selenium Options