Skip to content

Commit 2b56062

Browse files
authored
Webdriver Reconfigure (#4184)
* [WebDriver] Restart browser on _reconfigure Fixed #1192 * [WebDriver] Close browser after test if it was reconfigured * [WebDriver] Don't restart browser on reconfigure if only url was changed * added `_restart` method; alternative fix #1192 * added configuration
1 parent 57d02bd commit 2b56062

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/data/app/controllers.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ function GET() {
260260
}
261261
}
262262

263+
class userAgent {
264+
function GET() {
265+
echo $_SERVER['HTTP_USER_AGENT'];
266+
}
267+
}
263268
class minimal {
264269
function GET() {
265270
include __DIR__.'/view/minimal.php';

tests/data/app/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
'/somepath/info' => 'info',
3838
'/facebook\??.*' => 'facebookController',
3939
'/form/(.*?)(#|\?.*?)?' => 'form',
40+
'/user-agent' => 'userAgent',
4041
'/articles\??.*' => 'articles',
4142
'/auth' => 'httpAuth',
4243
'/register' => 'register',

0 commit comments

Comments
 (0)