Open woshihehao opened 4 weeks ago
Here is my wdi5 test repo: https://github.tools.sap/SelfBilling/e2e-tests-webdriverio Is there a website for raising WDI5 issues within SAP? Such as 'https://github.tools.sap/deploy-with-confidence/issues'.
Hi @woshihehao,
it looks like you are using saucelabs
in your pipeline and you have a dedicated saucelabs.conf.js
. Do you have configured wdi5 there as well?
Also have a look at the documentation and code snippets of wdi5. You are using a combination of deprecated configuration url
and unnecessary operations:
*** unnecessary operation ***
const tile = await browser.asControl({...})
const tileElement = await tile.getWebElement()
await tileElement.click
*** wdi5 native press ***
await browser.asControl({...}).press()
I am trying out wdi5 and it works fine on my local system but when I execute the tests in AZure pipeline, I get the below error: I have added below in wdi.conf.js:
I am using pageObjects, and I use below way to get UI5 controls:
In pipeline console log, I also see below error for every control: TypeError: browser.asControl is not a function. In package.json, I have below devdependencies among others:
All works fine locally but in AZure pipeline wdi5 tests break. Could colleagues help here?