cancel
Showing results for 
Search instead for 
Did you mean: 

Best practices for working with UI Automation on Fiori Applications

former_member131950
Participant
0 Kudos

Are there any best practices for automating Fiori applications? I am facing challenge with drop down lists. How to select drop down and then how to select a particular element? In the DOM there are many elements that are available which would enable the dropdown but when automation runs nothing seems to work. Besides once dropdown is selected how to select any particular element? There also many elements are available.

If you have encountered similar challenges please help out with what approach you followed and also if there are any best practices please share that as well.

former_member131950
Participant
0 Kudos

I am working on Cloud Studio

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member131950
Participant

I would like to share how I handled the drop-downs and selecting a particular option. If there is a better alternative please share.

First read the present value in the drop-down list using Get Element. Compare it with your input value, if it matches then all good. Otherwise use Keystroke Element on the dropdown element and input key irpa_core.enums.key.Home. This will take the drop down value to the first one. Then use a forever loop keep reading the present value in element and compare with input value. If it matches then you have reached your desired selection otherwise again use Keystroke Element on the dropdown element and input key irpa_core.enums.key.Down

This approach worked well for me.

former_member131950
Participant
0 Kudos

There are best practices maintained on help page as well. UI5 ones are here : https://help.sap.com/viewer/8e71b41b9ea043c8bccee01a10d6ba72/Cloud/en-US/8d24f8036643471ab4c459bf56a...