ui5-community / wdi5

official UI5 end-to-end test framework for UI5 web-apps. wdi5 = Webdriver.IO + UI5 Test API
https://ui5-community.github.io/wdi5/
Apache License 2.0
102 stars 43 forks source link

fluent async api does not work with .enterText() #294

Closed Siolto closed 2 years ago

Siolto commented 2 years ago

Following example works:

const mainUserInput = await browser.asControl(inputSelector)
await mainUserInput.enterText(newUsername)

The same written in one line:

await browser.asControl(inputSelector).enterText(newUsername)

fails with following error:

[chrome 103.0.5060.53 mac os x #0-0] Cannot convert object to primitive value
[chrome 103.0.5060.53 mac os x #0-0] TypeError: Cannot convert object to primitive value
[chrome 103.0.5060.53 mac os x #0-0]     at String.replace (<anonymous>)
[chrome 103.0.5060.53 mac os x #0-0]     at async clientSide_interactWithControl (/Users/scoen/Projekte/wdi5/wdi5/client-side-js/interactWithControl.js:2:12)

reproducible with our own tests. It seems there is an issue with the fluent api

Siolto commented 2 years ago

Had a look in the coding. Seems like the fluent async api is not implemented yet for enterText. @vobu could you maybe have a look? I am not sure how this async api works.

github-actions[bot] commented 2 years ago

hey 👋 - silence for 30 days 🤐 ... anybody? 😀

vobu commented 2 years ago

in the works

github-actions[bot] commented 2 years ago

hey 👋 - silence for 30 days 🤐 ... anybody? 😀

vobu commented 2 years ago

still on my plate