Unable to access Remote Webdriver to Browserstack using Codeception

后端 未结 1 366
时光说笑
时光说笑 2021-01-16 07:09
  1. I am Writing scripts for Browserstack using PHP Codeception.

Here it is my acceptance.yml file

modules:
enabled:
  - WebDriver
config:
         


        
1条回答
  •  野的像风
    2021-01-16 07:48

    You need to set the capabilities as follows when executing a test on Android emulators (Samsung Galaxy S5) on BrowserStack:

    config:
    
      WebDriver:
    
        url: 'http://www.google.com'
    
        host: 'hub.browserstack.com'
    
        port: 80
    
        browser: android
    
        capabilities:
    
          'browserstack.user': ''
    
          'browserstack.key' : ''
    
          'device': 'Samsung Galaxy S5'
    
          'platform': 'ANDROID'
    

    Note: 'android' for browser needs to be all lower case and for platform all upper case.

    The Code Generator can be very helpful to specify the capabilities while testing on different browser and OS combinations especially mobile devices.

    If you wish to access your local servers on BrowserStack, such as 'http://localhost:8080', you can follow these steps:

    a) Setup a Local Testing connection using the binaries.

    b) Add the capability 'browserstack.local': 'true' in your scripts.

    0 讨论(0)
提交回复
热议问题