Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用代理运行硒。我正在使用这个命令:
.\java.exe -jar 'D:\Проекты\printscreen\selenium\selenium-2.33.0.jar' -Dhttp.proxyHost=127.0.0.1
但上面的命令不起作用。那么有人可以帮助我了解如何在硒中运行/使用代理吗?
尝试切换到你的 jar 所在的目录:
-cd D:\Проекты\printscreen\selenium\selenium-2.33.0.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
对我来说,它奏效了。见下图: