Skip to content

Commit ba43d1e

Browse files
Update WebDriver.php: Minor (#123)
Page: https://codeception.com/docs/modules/WebDriver
1 parent 81b562c commit ba43d1e

File tree

1 file changed

+44
-42
lines changed

1 file changed

+44
-42
lines changed

src/Codeception/Module/WebDriver.php

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
* selenium-standalone start
7676
* ```
7777
*
78-
* Update configuration in `acceptance.suite.yml`:
78+
* Update configuration in `Acceptance.suite.yml`:
7979
*
8080
* ```yaml
8181
* modules:
@@ -87,7 +87,7 @@
8787
*
8888
* ## Headless Chrome Browser
8989
*
90-
* To enable headless mode (launch tests without showing a window) for Chrome browser using Selenium use this config in `acceptance.suite.yml`:
90+
* To enable headless mode (launch tests without showing a window) for Chrome browser using Selenium use this config in `Acceptance.suite.yml`:
9191
*
9292
* ```yaml
9393
* modules:
@@ -120,7 +120,7 @@
120120
* * Download and install [ChromeDriver](https://sites.google.com/chromium.org/driver/downloads?authuser=0)
121121
* * Launch ChromeDriver in a separate console window: `chromedriver --url-base=/wd/hub`.
122122
*
123-
* Configuration in `acceptance.suite.yml`:
123+
* Configuration in `Acceptance.suite.yml`:
124124
*
125125
* ```yaml
126126
* modules:
@@ -144,7 +144,7 @@
144144
* * [GeckoDriver](https://github.com/mozilla/geckodriver/releases) must be installed
145145
* * Start GeckoDriver in a separate console window: `geckodriver`.
146146
*
147-
* Configuration in `acceptance.suite.yml`:
147+
* Configuration in `Acceptance.suite.yml`:
148148
*
149149
* ```yaml
150150
* modules:
@@ -196,9 +196,9 @@
196196
* 4. If your site is available only locally or via VPN you should use a tunnel app. In this case add `browserstack.local` capability and set it to true.
197197
*
198198
* ```yaml
199-
* modules:
200-
* enabled:
201-
* - WebDriver:
199+
* modules:
200+
* enabled:
201+
* - WebDriver:
202202
* url: http://mysite.com
203203
* host: '<username>:<access key>@hub.browserstack.com'
204204
* port: 80
@@ -218,19 +218,19 @@
218218
* 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;.
219219
*
220220
* ```yaml
221-
* modules:
222-
* enabled:
223-
* - WebDriver:
224-
url: "https://openclassrooms.com"
225-
host: 'hub.lambdatest.com'
226-
port: 80
227-
browser: 'Chrome'
228-
capabilities:
229-
LT:Options:
230-
platformName: 'Windows 10'
231-
browserVersion: 'latest-5'
232-
browserName: 'Chrome'
233-
tunnel: true #for Local testing
221+
* modules:
222+
* enabled:
223+
* - WebDriver:
224+
url: "https://openclassrooms.com"
225+
host: 'hub.lambdatest.com'
226+
port: 80
227+
browser: 'Chrome'
228+
capabilities:
229+
LT:Options:
230+
platformName: 'Windows 10'
231+
browserVersion: 'latest-5'
232+
browserName: 'Chrome'
233+
tunnel: true #for Local testing
234234
* ```
235235
*
236236
* ### TestingBot
@@ -241,15 +241,15 @@
241241
* 4. Run [TestingBot Tunnel](https://testingbot.com/support/other/tunnel) if your site can't be accessed from Internet
242242
*
243243
* ```yaml
244-
* modules:
245-
* enabled:
246-
* - WebDriver:
247-
* url: http://mysite.com
248-
* host: '<key>:<secret>@hub.testingbot.com'
249-
* port: 80
250-
* browser: chrome
251-
* capabilities:
252-
* platformName: Windows 10
244+
* modules:
245+
* enabled:
246+
* - WebDriver:
247+
* url: http://mysite.com
248+
* host: '<key>:<secret>@hub.testingbot.com'
249+
* port: 80
250+
* browser: chrome
251+
* capabilities:
252+
* platformName: Windows 10
253253
* ```
254254
*
255255
* ## Configuration
@@ -276,19 +276,19 @@
276276
* * `webdriver_proxy` - sets http proxy to tunnel requests to the remote Selenium WebDriver through
277277
* * `webdriver_proxy_port` - sets http proxy server port to tunnel requests to the remote Selenium WebDriver through
278278
*
279-
* Example (`acceptance.suite.yml`)
279+
* Example (`Acceptance.suite.yml`)
280280
*
281281
* ```yaml
282-
* modules:
283-
* enabled:
284-
* - WebDriver:
285-
* url: 'http://localhost/'
286-
* browser: firefox
287-
* window_size: 1024x768
288-
* capabilities:
289-
* unhandledPromptBehaviour: 'accept'
290-
* moz:firefoxOptions:
291-
* profile: '~/firefox-profiles/codeception-profile.zip.b64'
282+
* modules:
283+
* enabled:
284+
* - WebDriver:
285+
* url: 'http://localhost/'
286+
* browser: firefox
287+
* window_size: 1024x768
288+
* capabilities:
289+
* unhandledPromptBehaviour: 'accept'
290+
* moz:firefoxOptions:
291+
* profile: '~/firefox-profiles/codeception-profile.zip.b64'
292292
* ```
293293
*
294294
* ## Loading Parts from other Modules
@@ -356,7 +356,8 @@
356356
*
357357
* You can inject `\Codeception\Scenario` into your test to get information about the current configuration:
358358
* ```php
359-
* use Codeception\Scenario
359+
* use Codeception\Scenario;
360+
*
360361
* public function myTest(AcceptanceTester $I, Scenario $scenario)
361362
* {
362363
* if ('firefox' === $scenario->current('browser')) {
@@ -522,7 +523,8 @@ public function _initialize()
522523
* This is how it can be done via `_capabilities` method from `Helper\Acceptance`:
523524
*
524525
* ```php
525-
* <?php // inside Helper\Acceptance
526+
* <?php
527+
* // inside Helper\Acceptance
526528
* public function _before(TestInterface $test)
527529
* {
528530
* $name = $test->getMetadata()->getName();

0 commit comments

Comments
 (0)