Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 使用代理启动firefox selenium_Node.js_Selenium_Proxy - Fatal编程技术网

Node.js 使用代理启动firefox selenium

Node.js 使用代理启动firefox selenium,node.js,selenium,proxy,Node.js,Selenium,Proxy,我想用代理运行selenium。我正在使用此命令: .\java.exe -jar 'D:\Проекты\printscreen\selenium\selenium-2.33.0.jar' -Dhttp.proxyHost=127.0.0.1 但上述命令不起作用。那么,有谁能帮助我了解如何在selenium中运行/使用代理吗?尝试切换到jar所在的目录: -cd D:\ПППППССы\printscreen\selenium\selenium-2.33.0.jar 然后使用代理启动

我想用代理运行selenium。我正在使用此命令:

    .\java.exe -jar 'D:\Проекты\printscreen\selenium\selenium-2.33.0.jar' -Dhttp.proxyHost=127.0.0.1

但上述命令不起作用。那么,有谁能帮助我了解如何在selenium中运行/使用代理吗?

尝试切换到jar所在的目录:

-
cd D:\ПППППССы\printscreen\selenium\selenium-2.33.0.jar

然后使用代理启动selenium jar:

  • java-jar-selenium-server-standalone-2.25.0.jar-Dhttp.proxyHost=127.0.0.1
对我来说,它奏效了。见下图: