Can we locate elements on a SAPUI5 application from outside of the project repository in a seperate project with WDI5 service? #559
Unanswered
Vikrant87-lego
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Any update on this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you please provide more information about your setup. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am trying to create automation scripts from outside the project repository. I have created a webdriverio project with WDI5 service and trying to provide the application URL as base URL.
But when i am trying to locate the UI5 elements i am getting below mentioned error:
javascript error: TypeError: can't access property "waitForUI5Options", window.wdi5 is undefined
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async clientSide_getControl (C:\Users\Username\Documents\Testing\TestFramework\node_modules\wdio-ui5-service\client-side-js\getControl.cjs:3:12)
at async WDI5Control._getControl (file:///C:/Users/Username/Documents/Testing/TestFramework/node_modules/wdio-ui5-service/esm/lib/wdi5-control.js:616:26)
at async WDI5Control.init (file:///C:/Users/Username/Documents/Testing/TestFramework/node_modules/wdio-ui5-service/esm/lib/wdi5-control.js:75:31)
at async Browser. (file:///C:/Users/Username/Documents/Testing/TestFramework/node_modules/wdio-ui5-service/esm/lib/wdi5-bridge.js:218:33)
Package.json:
{
"devDependencies": {
"@wdio/cli": "^8.22.1",
"@wdio/local-runner": "^8.22.1",
"@wdio/mocha-framework": "^8.22.0",
"@wdio/spec-reporter": "^8.21.0",
"wdio-ui5-service": "^2.0.2"
},
"scripts": {
"wdi5": "wdio run ./webapp/test/e2e/wdio.conf.js"
}
}
please find attached config file setup:
wdio.conf.zip
Emvironment: Windows 11 (virtual machine)
Can you please help me understand what is misssing?
Regards,
Vikrant
Beta Was this translation helpful? Give feedback.
All reactions