1
- 我正在使用PHP Codeception編寫Browserstack的腳本。
這是我acceptance.yml文件無法訪問遠程Webdriver瀏覽器使用Codeception
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**
- 我會改變一些腳本像URL: 'http://localhost:8080'和'browserstack.local': '假'從上述acceptance.yml文件。 然後被顯示爲「無法連接到服務器」錯誤
任何人都可以請給一些建議,以解決此問題。
WebDriver:應該縮進比配置更多: – Naktibalda