diff options
author | William Desportes <williamdes@wdes.fr> | 2020-06-09 23:45:14 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2020-06-10 02:27:22 +0300 |
commit | f8fde23f78ce3c333cad4c29c284a36be4fb5660 (patch) | |
tree | 49eb66ce82f5e15cc5027d1fcb945560b8dcdf9e /test/selenium | |
parent | fce312855702a377bece8c20c090174edb5013a1 (diff) |
Do not load sessionId if BrowserStack is not used
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'test/selenium')
-rw-r--r-- | test/selenium/TestBase.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/selenium/TestBase.php b/test/selenium/TestBase.php index acbd9ae4cc..c751c21498 100644 --- a/test/selenium/TestBase.php +++ b/test/selenium/TestBase.php @@ -135,7 +135,10 @@ abstract class TestBase extends TestCase $capabilities ); - $this->sessionId = $this->webDriver->getSessionId(); + // The session Id is only used by BrowserStack + if ($this->hasBrowserstackConfig()) { + $this->sessionId = $this->webDriver->getSessionId(); + } $this->navigateTo(''); $this->webDriver->manage()->window()->maximize(); |