Skip to content

Commit b123c21

Browse files
github-actions[bot]github-actions[bot]
authored andcommitted
updated
1 parent 31282b2 commit b123c21

File tree

2 files changed

+72
-62
lines changed

2 files changed

+72
-62
lines changed

changelog.markdown

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ title: Codeception Changelog
99

1010

1111

12+
### module-webdriver 4.0.2: 4.0.2
13+
14+
Released by [![](https://avatars.githubusercontent.com/u/64917965?v=4&s=16) TavoNiievez](https://github.com/TavoNiievez) on 2024/08/10 00:21:53 / [Repository](https://github.com/Codeception/module-webdriver) / [Releases](https://github.com/Codeception/module-webdriver/releases)
15+
16+
17+
18+
## What's Changed
19+
* Update WebDriver.php: Minor by **[ThomasLandauer](https://github.com/ThomasLandauer)** in https://github.com/Codeception/module-webdriver/pull/131
20+
* Update WebDriver.php: executeJS: Removing jQuery by **[ThomasLandauer](https://github.com/ThomasLandauer)** in https://github.com/Codeception/module-webdriver/pull/127
21+
* Update WebDriver.php: Minor by **[ThomasLandauer](https://github.com/ThomasLandauer)** in https://github.com/Codeception/module-webdriver/pull/123
22+
* Declare nullable parameter types explicitly by **[W0rma](https://github.com/W0rma)** in https://github.com/Codeception/module-webdriver/pull/134
23+
* Improper Exception Handling in _closeSession Function by **[eXorus](https://github.com/eXorus)** in https://github.com/Codeception/module-webdriver/pull/133
24+
25+
## New Contributors
26+
* **[W0rma](https://github.com/W0rma)** made their first contribution in https://github.com/Codeception/module-webdriver/pull/134
27+
28+
**Full Changelog**: https://github.com/Codeception/module-webdriver/compare/4.0.1...4.0.2
29+
30+
1231
### module-redis 3.2.0: 3.2.0
1332

1433
Released by [![](https://avatars.githubusercontent.com/u/395992?v=4&s=16) Naktibalda](https://github.com/Naktibalda) on 2024/07/28 11:47:55 / [Repository](https://github.com/Codeception/module-redis) / [Releases](https://github.com/Codeception/module-redis/releases)
@@ -3561,15 +3580,6 @@ Released by [![](https://avatars.githubusercontent.com/u/152236?v=4&s=16) Slamdu
35613580
- Session persistance: clean up $_SESSION between tests [\[#3](https://github.com/Codeception/module-mezzio/issues/3)](https://github.com/Codeception/module-mezzio/pull/3)
35623581

35633582

3564-
### module-webdriver 1.0.5: Fixed compatibility with PHP 5.6
3565-
3566-
Released by [![](https://avatars.githubusercontent.com/u/395992?v=4&s=16) Naktibalda](https://github.com/Naktibalda) on 2020/03/06 08:39:36 / [Repository](https://github.com/Codeception/module-webdriver) / [Releases](https://github.com/Codeception/module-webdriver/releases)
3567-
3568-
3569-
3570-
3571-
3572-
35733583
### module-mezzio 2.0.0: Initial release
35743584

35753585
Released by [![](https://avatars.githubusercontent.com/u/395992?v=4&s=16) Naktibalda](https://github.com/Naktibalda) on 2020/03/06 08:25:48 / [Repository](https://github.com/Codeception/module-mezzio) / [Releases](https://github.com/Codeception/module-mezzio/releases)

docs/modules/WebDriver.md

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ selenium-standalone start
3636

3737
{% endhighlight %}
3838

39-
Update configuration in `acceptance.suite.yml`:
39+
Update configuration in `Acceptance.suite.yml`:
4040

4141
{% highlight yaml %}
4242

@@ -50,7 +50,7 @@ modules:
5050

5151
### Headless Chrome Browser
5252

53-
To enable headless mode (launch tests without showing a window) for Chrome browser using Selenium use this config in `acceptance.suite.yml`:
53+
To enable headless mode (launch tests without showing a window) for Chrome browser using Selenium use this config in `Acceptance.suite.yml`:
5454

5555
{% highlight yaml %}
5656

@@ -86,7 +86,7 @@ Tests can be executed directly through ChromeDriver or GeckoDriver (for Firefox)
8686
* Download and install [ChromeDriver](https://sites.google.com/chromium.org/driver/downloads?authuser=0)
8787
* Launch ChromeDriver in a separate console window: `chromedriver --url-base=/wd/hub`.
8888

89-
Configuration in `acceptance.suite.yml`:
89+
Configuration in `Acceptance.suite.yml`:
9090

9191
{% highlight yaml %}
9292

@@ -112,7 +112,7 @@ See here for additional [Chrome options](https://sites.google.com/a/chromium.org
112112
* [GeckoDriver](https://github.com/mozilla/geckodriver/releases) must be installed
113113
* Start GeckoDriver in a separate console window: `geckodriver`.
114114

115-
Configuration in `acceptance.suite.yml`:
115+
Configuration in `Acceptance.suite.yml`:
116116

117117
{% highlight yaml %}
118118

@@ -169,9 +169,9 @@ you should use a tunnel application provided by a service.
169169

170170
{% highlight yaml %}
171171

172-
modules:
173-
enabled:
174-
- WebDriver:
172+
modules:
173+
enabled:
174+
- WebDriver:
175175
url: http://mysite.com
176176
host: '<username>:<access key>@hub.browserstack.com'
177177
port: 80
@@ -193,19 +193,19 @@ you should use a tunnel application provided by a service.
193193

194194
{% highlight yaml %}
195195

196-
modules:
197-
enabled:
198-
- WebDriver:
199-
url: "https://openclassrooms.com"
200-
host: 'hub.lambdatest.com'
201-
port: 80
202-
browser: 'Chrome'
203-
capabilities:
204-
LT:Options:
205-
platformName: 'Windows 10'
206-
browserVersion: 'latest-5'
207-
browserName: 'Chrome'
208-
tunnel: true #for Local testing
196+
modules:
197+
enabled:
198+
- WebDriver:
199+
url: "https://openclassrooms.com"
200+
host: 'hub.lambdatest.com'
201+
port: 80
202+
browser: 'Chrome'
203+
capabilities:
204+
LT:Options:
205+
platformName: 'Windows 10'
206+
browserVersion: 'latest-5'
207+
browserName: 'Chrome'
208+
tunnel: true #for Local testing
209209

210210
{% endhighlight %}
211211

@@ -218,15 +218,15 @@ you should use a tunnel application provided by a service.
218218

219219
{% highlight yaml %}
220220

221-
modules:
222-
enabled:
223-
- WebDriver:
224-
url: http://mysite.com
225-
host: '<key>:<secret>@hub.testingbot.com'
226-
port: 80
227-
browser: chrome
228-
capabilities:
229-
platformName: Windows 10
221+
modules:
222+
enabled:
223+
- WebDriver:
224+
url: http://mysite.com
225+
host: '<key>:<secret>@hub.testingbot.com'
226+
port: 80
227+
browser: chrome
228+
capabilities:
229+
platformName: Windows 10
230230

231231
{% endhighlight %}
232232

@@ -254,20 +254,20 @@ you should use a tunnel application provided by a service.
254254
* `webdriver_proxy` - sets http proxy to tunnel requests to the remote Selenium WebDriver through
255255
* `webdriver_proxy_port` - sets http proxy server port to tunnel requests to the remote Selenium WebDriver through
256256

257-
Example (`acceptance.suite.yml`)
257+
Example (`Acceptance.suite.yml`)
258258

259259
{% highlight yaml %}
260260

261-
modules:
262-
enabled:
263-
- WebDriver:
264-
url: 'http://localhost/'
265-
browser: firefox
266-
window_size: 1024x768
267-
capabilities:
268-
unhandledPromptBehaviour: 'accept'
269-
moz:firefoxOptions:
270-
profile: '~/firefox-profiles/codeception-profile.zip.b64'
261+
modules:
262+
enabled:
263+
- WebDriver:
264+
url: 'http://localhost/'
265+
browser: firefox
266+
window_size: 1024x768
267+
capabilities:
268+
unhandledPromptBehaviour: 'accept'
269+
moz:firefoxOptions:
270+
profile: '~/firefox-profiles/codeception-profile.zip.b64'
271271

272272
{% endhighlight %}
273273

@@ -341,7 +341,8 @@ If speed is a concern, it's recommended you stick with explicitly specifying the
341341
You can inject `\Codeception\Scenario` into your test to get information about the current configuration:
342342
{% highlight php %}
343343

344-
use Codeception\Scenario
344+
use Codeception\Scenario;
345+
345346
public function myTest(AcceptanceTester $I, Scenario $scenario)
346347
{
347348
if ('firefox' === $scenario->current('browser')) {
@@ -418,7 +419,8 @@ This is how it can be done via `_capabilities` method from `Helper\Acceptance`:
418419

419420
{% highlight php %}
420421

421-
<?php // inside Helper\Acceptance
422+
<?php
423+
// inside Helper\Acceptance
422424
public function _before(TestInterface $test)
423425
{
424426
$name = $test->getMetadata()->getName();
@@ -1238,17 +1240,14 @@ If Codeception lacks a feature you need, please implement it and submit a patch.
12381240
* `param array` $arguments
12391241
* `return mixed`
12401242

1241-
Executes custom JavaScript.
1242-
1243-
This example uses jQuery to get a value and assigns that value to a PHP variable:
1243+
Executes JavaScript commands.
12441244

12451245
{% highlight php %}
12461246

12471247
<?php
1248-
$myVar = $I->executeJS('return $("#myField").val()');
1248+
$myVar = $I->executeJS('return document.getElementById("myField").value');
12491249

1250-
// additional arguments can be passed as array
1251-
// Example shows `Hello World` alert:
1250+
// Additional arguments can be passed as array. E.g. this will alert `Hello World`:
12521251
$I->executeJS("window.alert(arguments[0])", ['Hello world']);
12531252

12541253
{% endhighlight %}
@@ -2558,18 +2557,19 @@ $I->click('#agree_button');
25582557
* `throws ElementNotFound`
25592558
* `return void`
25602559
2561-
Waits up to $timeout seconds for the given element to change.
2560+
Waits up to `$timeout` seconds for the given element to change.
25622561
25632562
Element "change" is determined by a callback function which is called repeatedly
25642563
until the return value evaluates to true.
25652564
25662565
{% highlight php %}
25672566
25682567
<?php
2569-
use \Facebook\WebDriver\WebDriverElement
2570-
$I->waitForElementChange('#menu', function(WebDriverElement $el) {
2571-
return $el->isDisplayed();
2572-
}, 100);
2568+
use Facebook\WebDriver\WebDriverElement;
2569+
2570+
$I->waitForElementChange('#menu', function(WebDriverElement $element) {
2571+
return $element->isDisplayed();
2572+
}, 5);
25732573
25742574
{% endhighlight %}
25752575

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy