I’m having an issue with Salesforce Combo boxes and the ID changing dynamically almost every time the test runs and opens up the URL. I have also tried using Wait Until Element Is Visible css=button[aria-label=“Category - Current Selection”] timeout=30s getting this: FAIL : Element ‘css=button[aria-label=“Category - Current Selection”]’ not visible after 30 seconds. I’ve even tried Wait Until Element Is Visible css=button[aria-label=“Category - Current Selection: --None–”]
Here is the copy of the element when inspecting: –None–
Where the variable ${comboBoxLabel} contains the visible label text of the combobox.
The XPath to click and open the combobox would be the XPath from above followed by //input
And the Xpath to click on the option within the combobox would be the first Xpath extended with:
Thank you Lukas I will give this a try.
When you state "contains the visiable label text of the combobox. You mean this label? not exactly the html code when inspecting the page and element?