- I am Writing scripts for Browserstack using PHP Codeception.
Here it is my acceptance.yml file
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'
But after run the program through the command line, it will be displaying as below error message in command prompt.
**[Facebook\WebDriver\Exception\UnknownServerException]
Session terminated**
- I will change some script like url: 'http://localhost:8080' and 'browserstack.local': 'false' From the above acceptance.yml file. Then Error being displayed as "Unable to Connect to Server"
Can anyone please give some suggestion to resolve this problem.