我需要运行browser headless,因为我正在Linux服务器上运行测试。 .POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"chrome","platformName":"linux","goog:chromeOpti
我没有错误地执行了这些步骤:
下载/JDK-6u37-linux-x64.bin
mkdir程序cd程序bash下载/jdk-6u37-linux-x64.binln -s jdk -6u37-linux x64 jdk
我在.bashrc文件的末尾添加了以下行:
The program 'java' can be fou
我使用capybara & selenium测试我的rails项目。当我执行测试脚本时,它会出现这样的错误 Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path=但它也会出现其他错误,比如
Selenium::WebDriver::Error
但是,当我在中添加headless选项时,Send_Keys失败,它返回今天的询问平均速率,这不是我想要的。 这个程序稍后将在Linux服务器上执行,所以我必须将headless添加到脚本中。chrome版本: 75.0.3770.80 python: 3.6.5 Linux: Red Hat Enterprise Linux Server release 7.4 (Maipo) fromwebdriver.ChromeOptions()
chrome_options.add_argument('