Johan Sundberg
Johan Sundberg
Sorry, I jumped to conclusions. Working as expected.
The intention was to avoid having to create a new file, but not a major problem . Thanks for fast feedback.
This is the workaround I'm using in v.4.8. Disables screenshot if first attempt failes, enables it for second attempt. ```javascript const currentScreenshotPath = browser.options.screenshotPath; try { browser.options.screenshotPath = null; browser.click(selector);...
I'm sorry but I'm not able to listen to anything apart from wdio events. Not in reporter constructor with this.on('custom:event'). Not in wdio beforeHook with browser.on('custom:event'). I'm launching wdio programmatically...
This is what I found this far: Childprocess is forked in "local-runner/worker" which then listens to all child events and re-send them with ``` this.emit('message', Object.assign(payload, { cid })); ```...
Never figured out how to really solve it but ended up with this solution: Send message in tests with `process.emit('my:event' data)` In reporter, set up listener in constructor and set...
I like the concept of the chai extension, but when you use page objects it doesn't make sense to use the locator when asserting, since it's most likely defined only...
> @vbyjsue UNLESS you are using a robot model, why would your assertions be inside the pageObject? Also, calling the assertion natively on the element isn't very explicit. Personally, I...
And you have tried the proposed workaround? `const { Launcher } = await import('@wdio/cli');`