Closed marianfoo closed 2 years ago
no error when using:
wdi5: {
logLevel: "silent", // [optional] error | verbose | silent, default: "error"
url: "test/flpSandbox.html", // [mandatory] {string} name of your bootstrap html file. If your server autoredirects to a 'domain:port/'-like root url, use empty string ''
skipInjectUI5OnStart: false, // [optional] {boolean}, default: false; true when UI5 is not on the start page, you need to later call <wdioUI5service>.injectUI5() manually
waitForUI5Timeout: 15000 // [optional] {number}, default: 15000; maximum waiting time in milliseconds while checking for UI5 availability
},
new error :(
[0-0] TypeError in "ui5 basic.get field"
TypeError: simple_test.getText is not a function
at Context.<anonymous> (C:\UI5_NPM\de.marianzeis.datelibsample\uimodule\webapp\test\basic.test.js:15:32)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[0-0] FAILED in chrome - C:\UI5_NPM\de.marianzeis.datelibsample\uimodule\webapp\test\basic.test.js
hi, thanks for checking in 👍 can you please check whether setting
baseUrl
in https://github.com/marianfoo/ui5-dayjs-sample/blob/b6417e4fc11d97fcc8251fcd0b97dac2d1630bc6/uimodule/wdio.conf.js#L107 to http://localhost:8080/test
andwdi5.url
in https://github.com/marianfoo/ui5-dayjs-sample/blob/b6417e4fc11d97fcc8251fcd0b97dac2d1630bc6/uimodule/wdio.conf.js#L5 to flpSandbox.html
might solve things?
Also, use the 0.9.0-alpha.0
- more stable than the semver suggests 😁
Hi vobu, thanks for the quick feedback. Your suggestions unfortunately produce the same error. Alpha really put me off a bit :D Unfortunately the same error here.
got things going :) see https://github.com/marianfoo/ui5-dayjs-sample/pull/1
very kind of you 😊 I tried this similar to what you did yesterday. I think the trivial error was here: https://github.com/vobu/ui5-dayjs-sample/blob/515efed6625c6293f392ec70e83e107cd73ea8b8/uimodule/webapp/test/pageObjects/Page.js#L5
I simply forgot async await
here?
I just this this example here and tried to replicate it: https://github.com/js-soft/wdi5/blob/main/examples/ui5-js-app/webapp/test/e2e/basic.test.js
I simply forgot
async await
here?
that and using browser.goTo()
| wdi5.goTo()
instead of browser.url()
plug await
ing querying for controls
might want to fix the example too? I guess still on the Todo list? :)
erm, what example?!?
I just this this example here and tried to replicate it: https://github.com/js-soft/wdi5/blob/main/examples/ui5-js-app/webapp/test/e2e/basic.test.js
this one Or did i copy something wrong here
as this is part of our CI and it works well, it seems you accidentally copied an old version
ah, i see, i was using this the older version
refactor: cleanup
https://github.com/js-soft/wdi5/commit/5859471dbeda2889c2c08abbcc1e004e5f88875d
But it´s already fixed, cheers, thank for your support
Describe the bug When running wdio, error is happening in
_getControl
, probably in https://github.com/js-soft/wdi5/blob/d69e84a8229316f45afe4d714487b2136c6039de/client-side-js/getControl.js#L4Maybe because i run this in Fiori Launchpad in
flpSandbox.html
?To Reproduce Steps to reproduce the behavior:
Expected behavior No error
Logs/Console Output
Screenshots
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version: [0.8.2] (same in 0.9.0 alpha)UI5
version: [1.96.0]wdio
-version (output ofwdio --version
): [7.16.16]node
-version (output ofnode --version
): [v16.13.0]