christian-bromann on cb-typing-cleanup
add long as dep to cucumber fra… (compare)
i tried to use this
browser.waitUntil(() => browser.execute('return document.readyState') === 'complete');
but this doesn't really wait , i think the main problem i have is that the page is redirected to another page. and there it doesn't wait for it to fully loaded
@testingqa207_twitter if you are using wdio v6, the signature for beforeScenario has changed as follows; also you will find the feature name in feature.document.feature.name:
beforeScenario: function (uri, feature, scenario, sourceLocation, context) {
console.log(` ---------------------------------------------------------------------
\x1B[1;31mFeature: ${feature.document.feature.name}\x1B[0m
\x1B[1;35mStart scenario: \x1b[0;33m${scenario.name}\x1B[0m
---------------------------------------------------------------------`
)
},
scenario.name should also work but you can console.log(JSON.stringify(scenario)) to see its structure.
Hi @christian-bromann , I'm still very new to webdriverIO too, I'm not quite sure am I following the steps right accordingly to https://webdriver.io/docs/docs/wdio-intercept-service.html.
Any idea why when I call out request.method
, it output as undefined instead of GET?
Welcome any other feedback from the rest of you too, thank you for your time ahead :)
require('ts-node').register({ files: true })
in the wdio config? And the second question is (it's not quite a WDIO question but I would like to here from WDIO users): what is the difference between require('ts-node').register()
, require('ts-node').register({ files: true })
and require('ts-node').register({ transpileOnly: true })
? I can hardly understand these options from the docs, so I would love to know what configuration is more suitable for WDIO
what is the underlyying library that enables browser.mock () to work in webdriverio. Is that puppeteer?
I am talking in the context of network logs
I am using SauceLabs and cucumber. Each of my features have one scenario and I want each of my jobs/tests (on SauceLabs) to have the name of a scenario I’m running. What’s the best way to do this?
I tried setting browser.capabilities.name
in beforeFeature()
but it doesn’t have impact, its value is changed but on SauceLabs, it still displays feature name as job name (which is default).
Can I do it in some before hooks or should I use after hooks to communicate with SauceLabs API in order to set it?
it('can handle commands synchronously', () => {
let value = $('#input').getValue()
console.log(value) // outputs: some value
})