小编C R*_*hmi的帖子

Selenium - 代码 - chrome问题

在selenium服务器中使用codeception在chrome上运行测试时,我会随机获得以下错误:

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
Run Code Online (Sandbox Code Playgroud)

当给予firefox时,它工作正常.

运行selenium的命令:

java -jar selenium-server-standalone-2.31.0.jar -browser googlechrome
Run Code Online (Sandbox Code Playgroud)

以下是acceptance.yml内容

class_name: WebGuy
modules:
  enabled:
    - Selenium2
    - WebHelper
  config:
    Selenium2:
      url: 'http://www.google.com'
      browser: googlechrome
  delay: 350
Run Code Online (Sandbox Code Playgroud)

google-chrome selenium-rc selenium-webdriver

2
推荐指数
1
解决办法
4218
查看次数

暂停代码接收测试(使用Selenium WebDriver时)

是否可以使用测试代码中的语句暂停然后恢复代码接受测试执行?

selenium codeception

0
推荐指数
1
解决办法
840
查看次数