任何人都可以幫我在Chrome運行驗收試驗Codeception - 如何在Chrome中
1)我acceptance.suite.yml文件結構
class_name: AcceptanceTester
modules:
enabled:
- WebDriver:
url: http://localhost:81/project
browser: 'chrome'
window_size: 1024x768
wait: 10
- \Helper\Acceptance
2)我一直selenium-server-standalone-2.47.1.jar和chromedriver.exe放在同一個文件夾中。
我試圖啓動我的硒服務器的命令java -jar selenium-server-standalone-2.47.1.jar -Dwebdriver.chrome.driver=C:\stuff\sel\codeceptiontest\chromedriver.exe
3)我得到一個錯誤"Error: Could not find or load main class ="
4)這是正確的命令來運行我的檔案?
php codecept.phar run tests/acceptance/loginCept.php --env chrome
所以你的問題是,你不能啓動硒,對吧? – Naktibalda
是的。我無法啓動硒。我收到了上面指定的錯誤。我的設置在接受yml是正確的嗎? – learn
您是否可以使用Winzip打開罐子。它可能是腐敗的! –