2
我得到使用硒服務器codeception運行在Chrome測試時,在隨機以下錯誤:硒 - codeception - 鉻問題
WebDriver\Exception\UnknownError: The current platform is not supported: LINUX
WebDriver\Exception\UnknownError: Unable to find executable for product Opera Desktop
WebDriver\Exception\UnknownError: The path to the driver executable must be set by the phantomjs.binary.path capability/system property/PATH variable; for more information, see https://github.com/ariya/phantomjs/wiki. The latest version can be downloaded from http:\//phantomjs.org/download.html
當給火狐,它工作正常。
運行硒命令:
java -jar selenium-server-standalone-2.31.0.jar -browser googlechrome
以下是acceptance.yml
內容
class_name: WebGuy
modules:
enabled:
- Selenium2
- WebHelper
config:
Selenium2:
url: 'http://www.google.com'
browser: googlechrome
delay: 350
這工作!謝謝! :) – 2014-02-25 09:37:11
也爲我工作。 – bheatcoker 2015-09-09 13:37:54