How can I pass capabilities in Selenium 3 for PHP Codeception?

How can I pass capabilities in Selenium 3 while using PHP Codeception?

Hi Toby,

Please refer to the sample test case below:

php
    class FirstCest
        {
            public function frontpageWorks(AcceptanceTester $I)
            {
                sleep(5);
                $I->amOnPage('/sample-todo-app');
                sleep(2);
                $I->checkOption('/html/body/div/div/div/ul/li[4]/input');
                sleep(2);
                $I->checkOption('/html/body/div/div/div/ul/li[5]/input');
            }
        }

In the test script, you need to update your test capabilities. Notice the declaration of class name “AcceptanceTester”. We used this class to specify test capabilities:

class_name: AcceptanceTester
modules:
    enabled:
        - WebDriver:
            url: 'https://lambdatest.github.io/sample-todo-app/'
            host: '{username}:{token}@hub.lambdatest.com' #provide your LambdaTest credentials
            port: 80
            browser: chrome
             
            capabilities:
            name: 'Codeception Example'
            build: '1.0'   
            browserName: 'Chrome' # request the latest version of chrome
            platform: 'ANY'
            version: '71.0'
            tunnel: false