Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Suggestion items shown for sap.m.input field #436

Closed
Pravalika-Gandesiri opened this issue Feb 27, 2023 · 4 comments
Closed

No Suggestion items shown for sap.m.input field #436

Pravalika-Gandesiri opened this issue Feb 27, 2023 · 4 comments
Labels

Comments

@Pravalika-Gandesiri
Copy link

Hi,
I am currently working on SAP UI5 project and need to write WDI5 tests for the same.

Test Scenario:
We have a sap.m.input control in our UI which gives the Suggestion list on entering n characters.

Problem:
In WDI5 test, the suggestion list is not shown even after giving the text in the input control.

Code Snippet:
const inputControl= await browser.asControl({
            selector: { 
              id: "myTestId",
               controlType: "sap.m.input", 
          } 
      }); 
await inputControl.enterText("Testdata");

@vobu
Copy link
Contributor

vobu commented Feb 27, 2023

this is the same root cause as #355
short recap: missing functionality in the record replay API of UI5; UI5 colleagues are working on it.
mitigation for the time being would be to manually send return à la (pidgeon code)

await inputControl.focus()
await browser.keys("Return") // or send `constants.Return` https://github.com/webdriverio/webdriverio/blob/e78ecef891b2de4a2f7c198117d35db8debf1c68/packages/webdriverio/src/constants.ts#L325

@Dhanushadoor
Copy link

Hi @vobu,

I really appreciate your speedy response.
We're following up on the reference issue which you mentioned.

The workaround you have suggested doesn't seem to work, since our requirement is dependent on the Suggestion list.
It's crucial to click on the suggestion to carry forward with the test scenario.

Please let us know if there are any other ways to achieve the same!

Kind Regards,
Dhanush

@github-actions
Copy link

github-actions bot commented Apr 2, 2023

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

@github-actions github-actions bot added the stale label Apr 2, 2023
@github-actions
Copy link

closed 📴 because silencio 🤫 since an additional 14 days after staleness 📠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants