From 4222688b02ea9588ef4aa5ba14c60fb9f187c178 Mon Sep 17 00:00:00 2001 From: Salman Khan <70570645+salmanlt@users.noreply.github.com> Date: Thu, 28 Jul 2022 17:39:30 +0530 Subject: [PATCH 1/3] Update LambdaTest Caps --- src/Codeception/Module/WebDriver.php | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index 5d23d45..c550c66 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -211,27 +211,24 @@ * * ### LambdaTest * - * 1. Create an account at [LambdaTest](https://www.lambdatest.com/) to get your username and access key + * 1. Create an account at [LambdaTest](https://www.lambdatest.com) to get your username and access key * 2. In the module configuration use the format `username`:`access key`@hub.lambdatest.com' for `host` - * 3. Configure `os` and `os_version` under `capabilities` to define the operating System - * 4. If your site is available only locally or via VPN you should use a tunnel app. In this case add capabilities.setCapability("tunnel",true);. + * 3. Configure `platformName`, 'browserVersion', and 'browserName' under `LT:Options` to define test environments. + * 4. If your website is available only locally or via VPN you should use LambdaTest tunnel. In this case, you can add capability "tunnel":true;. * * ```yaml * modules: * enabled: * - WebDriver: - * url: http://mysite.com - * host: ':@hub.lambdatest.com' - * build: - * name: - * port: 80 - * browser: chrome - * capabilities: - * os: Windows - * os_version: 10 - * browser_version: 86 - * resolution: 1366x768 - * tunnel: true # for local testing + url: "https://openclassrooms.com" + host: 'hub.lambdatest.com' + port: 80 + browser: 'Chrome' + capabilities: + LT:Options: + platformName: 'Windows 10' + browserVersion: 'latest-5' + browserName: 'Chrome' * ``` * * ### TestingBot From d9c3ce9757d15bbc0b5390515002d89c3d4e6741 Mon Sep 17 00:00:00 2001 From: Salman Khan <70570645+salmanlt@users.noreply.github.com> Date: Fri, 29 Jul 2022 01:53:15 +0530 Subject: [PATCH 2/3] Update WebDriver.php --- src/Codeception/Module/WebDriver.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index c550c66..51253d7 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -229,6 +229,7 @@ platformName: 'Windows 10' browserVersion: 'latest-5' browserName: 'Chrome' + tunnel:true #for Local testing * ``` * * ### TestingBot From 4c8c59455cc17c755af6078ec8b46cd641aecf45 Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Sun, 11 Sep 2022 13:52:07 +0300 Subject: [PATCH 3/3] Fix yaml example --- src/Codeception/Module/WebDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index 51253d7..596d561 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -229,7 +229,7 @@ platformName: 'Windows 10' browserVersion: 'latest-5' browserName: 'Chrome' - tunnel:true #for Local testing + tunnel: true #for Local testing * ``` * * ### TestingBot