Skip to content

Use a single browser instance per suite for Protractor/Selenium helper - #167

Merged
DavertMik merged 2 commits into
codeceptjs:masterfrom
Nighthawk14:feat/single-browser-instance
Jul 26, 2016
Merged

DavertMik merged 2 commits into
codeceptjs:masterfrom
Nighthawk14:feat/single-browser-instance

Conversation

@Nighthawk14

@Nighthawk14 Nighthawk14 commented Jul 21, 2016 •

Copy link
Copy Markdown
Contributor

Instead of opening/closing the browser before/after each tests, this is doing it before/after each suite. Only available for Protractor/Selenium helper at the moment, I'm happy to bring it to webdriver.io if we agree that the feature is good. Also any suggestion/improvement welcome :).

Fix #156

ps: That speeds up the tests as well from 11min to 6

@DavertMik

Copy link
Copy Markdown
Contributor

Thanks. The feature is good but I think it should be configurable. I will review it tomorrow and if everything is ok I will merge it and try to do same for webdriverio

@DavertMik
DavertMik merged commit 5981873 into codeceptjs:master Jul 26, 2016
@DavertMik

Copy link
Copy Markdown
Contributor

Thank you. SeleniumWebdriver, Protractor and WebDriverIO has restart option to enable/disable using single browser session for all tests. By default it is set to true which was the default behavior. To not restart browser between tests set restart: false

@Nighthawk14
Nighthawk14 deleted the feat/single-browser-instance branch July 27, 2016 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants