【发布时间】:2015-12-11 08:20:10
【问题描述】:
- 我正在使用 PHP Codeception 为 Browserstack 编写脚本。
这是我的acceptance.yml文件
modules:
enabled:
- WebDriver
config:
WebDriver:
url: 'http://www.google.com'
host: 'hub.browserstack.com'
port: 80
browser: Android
device: Samsung Galaxy S5
deviceOrientation: portrait
capabilities:
'browserstack.user': 'USERNAME'
'browserstack.key' : 'ACCESS_KEY'
'browserVersion': '21.0'
'browserstack.debug': 'true'
但是通过命令行运行程序后,它会在命令提示符中显示如下错误消息。
**[Facebook\WebDriver\Exception\UnknownServerException]
Session terminated**
- 我将从上述的acceptance.yml 文件中更改一些脚本,例如url: 'http://localhost:8080' 和'browserstack.local': 'false'。 然后错误显示为“无法连接到服务器”
谁能给点建议来解决这个问题。
【问题讨论】:
-
WebDriver: 应该比 config: 缩进更多:
标签: php codeception browserstack