Closed waldpark closed 1 year ago
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
sap.m.Input
Thank you.
@dominikfeininger I am sorry, I meant to to write this:
PROBLEM 2: In environment 3, it does not work at all.
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. I hope this gives you a hint for solving the problem with "sap.m.SearchField".
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:
…
xmlns:t="sap.ui.table"
…
<t:extension>
<OverflowToolbar style="Clear">
<Input id="idInputField" class="sapUiTinyMarginBegin" value="" width="5rem"/>
<SearchField id="idTreeSearchField"
width="auto"
liveChange="onTreeSearchLiveChange" />
wdi-script:
const selectorInputField = {
wdio_ui5_key: "inputField2",
forceSelect: true, // make sure we're retrieving from scratch
selector: {
id: "idInputField",
viewName: "myNamespace.myAppName.view.MyViewName"
}
}
const inputField = await browser.asControl(selectorInputField2)
await inputField.enterText('abc')
hey 👋 - silence for 30 days 🤐 ... anybody? 😀
Good to have this reminders :-). I still need to deploy the sample app to my BTP Free Tier.
This issue is related to #378. Please check my comment regarding a step toward testing that in a stable environment.
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.3chrome 107.0.5304.87
Additional context See above in the description