Open xiscocapllonch opened 5 years ago
Someone?
@xiscocapllonch please share repo with reproducible example, I will try to help
@BorisOsipov thanks, you can try with this example https://github.com/xiscocapllonch/wdio-cucumber-reproducible-example
@xiscocapllonch didn't get what is happened. Workaraund move browser.reload()
to cucumber hook.
E.g see patch https://gist.github.com/BorisOsipov/2755ee4e121d2628f71b6f5750405225
Also if you use sync:true
you don't need async\await e.g await browser.waitForExist('#bbcprivacy-continue-button')
I'm using WebDriverIO and cucumber with the test runner to run tests that need an special clean scenario environment without old cookies or session storages.
I was using the "browser.reload()" method in the "beforeScenario" function without any problem for the next set of versions:
"cucumber": "4.2.1", "wdio-cucumber-framework": "1.1.1", "webdriverio": "4.13.0"
When I updated the wdio-cucumber-framework version form "1.1.1" to "2.2.8", the beforeScenario function:
beforeScenario: function () { browser.reload() }
Throws an exception like the following:
And "Your session will get initialised and closed automatically" isn't the case between scenarios.