-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Selectors not working properly in UI5 Apps deployed to SAP BTP #363
Comments
Hi @waldpark, thanks for the detailed description. Can you please make sure you didn't mix up the "environments" in your description, since you write two times about environment 2. Can you please repeat this test with
Thank you. |
@dominikfeininger I am sorry, I meant to to write this: PROBLEM 2: A test with sap.m.Input will follow later today. |
@dominikfeininger: Here is my test: With "sap.m.Input", PROBLEM 1 does not occur. The selector works in the stand-alone version of the UI5 app deployed to the HTML5 repository. And this is where your sample test app is also running. PROBLEM 2 is still the same. It does not work for a UI5 App deployed to SAP BTP, running in the SAP Fiori Launchpad. Code-snippets:
wdi-script:
|
hey 👋 - silence for 30 days 🤐 ... anybody? 😀 |
Good to have this reminders :-). I still need to deploy the sample app to my BTP Free Tier. |
hey 👋 - silence for 30 days 🤐 ... anybody? 😀 |
closed 📴 because silencio 🤫 since an additional 14 days after staleness 📠 |
Description
I have deployed a UI5 freestyle application to the SAP BTP HTML5 repository, as part of an MTA.
It can run locally and in two SAP BTP environments,
1 – localhost
2 – as a stand-alone app in the HTML5 repository,
3 – as an app inside the SAP Fiori Launch Pad
My UI5 app contains a sap.m.SearchField.
In the environment 2, the search field can be accessed using a selector like so:
searchAllFields[0]._domId displays the full ID of the UI5 element as it is inside the DOM and I am able to enter text using
So far so good.
PROBLEM 1:
The selector which directly accesses the search field by ID would not work:
searchField._domId is empty!
And I cannot do anything with the searchField object.
PROBLEM 2:
In environment 2, it does not work at all. I can see in the DOM tree that my UI5 app is embedded inside an iFrame. Is this the problem? If yes, is there a way for WDI5 to switch into the iFrame to access UI5 controls of Apps running in the FLP environment?
Note:
In environment 1 (localhost), both selectors work nicely.
To Reproduce
My test script looks like so:
I am using
as in your examples with
My UI5 search field is simply a search field inside the toolbar of a tree table:
Expected behavior
should be clear
Logs/Console Output
TypeError: searchField.getProperty is not a function
$> ...
Screenshots
Note: I have tried the selector suggested by the test recorder as well. No success.
Runtime Env:
wdi5/wdio-ui5-service
-version: "^0.9.15"UI5
version: 1.108.0wdio
-version (output ofwdio --version
): 7.25.4node
-version (output ofnode --version
): v14.19.3OS: MacOS v12.3.1
chrome 107.0.5304.87
Additional context
See above in the description
The text was updated successfully, but these errors were encountered: