Posts

Showing posts with the label Power Platform

Dynamic UI Selector in Power Automate Desktop

Image
We’ll look at how to select a UI element from a web form when its ID changes every time the form is loaded. Go to https://rpachallenge.com/ and download the Excel file. First, I’ll explain how to capture the element and make the selector dynamic. Consider that we've launched the RPA Challenge website in Power Automate Desktop (PAD). After adding the Populate text field on web page action, click Add UI element . Open this tab in Microsoft Edge. Select the First Name text box. It will be captured using its ID , but since the ID changes each time, replace it with a unique HTML attribute. For this website, the attribute ng-reflect-name is unique and can be used instead. After selecting the element, turn on the Text Editor toggle in the selector window. Then replace the existing selector with: input[ng-reflect-name="labelFirstName"] You can find this attribute value by inspecting the element in the brows...