[SAP S/4 HANA Public Cloud 2508] Unable to click on 'Créer' button

Dear RobotFramework Community,

I’m running a SAP S/4 HANA Public Cloud Instance (Fiori) about the Purchase Requisition Transaction (F229).

I’m working on Non-Regression Test with RobotFramework and the SeleniumLibrary.

I want when I click to ‘Créer’, it clicks on ‘Article’ to create my Post.

RobotFramework doesn’t detect my button ““Créer”; I tried to make a click on it, but it didn’t want to show the pop-up to click on “Article”, and RobotFramework didn’t detect it as an error.

There is my code about it: Cliquer Sur Bouton Creer pour le poste # (inchangé) Execute JavaScript - Pastebin.com

Someone already have this problem before please?

If needed, there is the screenshot about the menu:

Thanks you in advance,

Great regards,
Nicolas

Hello ,

how do you locate that element ? could you give the locator please ?

could you give the HTML of that part please as well

without those details it is difficult to tell
regards

Hello,

Thanks your for your answer.

You can read the next image for HTML.

To locate the element, I’m using xpath : xpath=//div[@id=‘sap-ui-static’]//*[self::bdi or self::span][normalize-space()=‘Article’].

Great regards.
Nicolas

So you want to click Créer but it clicks Article and your xpath says Article ?

Sorry maybe it didn’t explained correctly.

As an user, I must click on “Créer” to access to “Article”, but Robotframework don’t want to show the submenu to click on “Article” (it closes immediately after some milliseconds). So, it cannot access it. Robotframework says SUCESS into reports, but it don’t click on it.

Ok, i might have also misunderstood your explanation :smiley:

Anyway, that ui component looks like a dropdown and it might have a detection if the mouse focus is on there and once there’s a click to open the the combobox, focus goes away (i guess?), combobox closes.

I’d start by setting the focus to the main combobox element (unclear as its not visible in the image), and then using keyboard presses (up down arrow) to get to the correct element and then keyboard pressing enter to select the element..

Thanks for your answer.

I tried to make a focus on the main combox element, but the dropdown don’t want to open :confused:

setting focus itself will not do anything, after setting focus, did you try pressing down key ?