cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
soumiya
Helper I
Helper I

add button does not work

I am trying to automate on of CRM where once the data is populated into fields need to press on ADD button to add the data.

Tried with press button, Click ui element and also tried with hotkey Enter still i am not able to achieve. The selector remains constant for button but not sure why its throwing error.

selector:

body > div[Class="main-page bubble-element Page"] >
div[Class="bubble-r-line"]:eq(1) > div[Class="bubble-r-box"] >
div[Class="bubble-element Group"] > div[Class="bubble-r-line"]:eq(1) >
div[Class="bubble-r-box"]:eq(0) > button[Class="bubble-element Button clickable-element"][Type="submit"]

 

Please do suggest some way to solve the issues. Thanks in Advance

 

Regards

Soumiya

 

3 REPLIES 3
adijain
Microsoft
Microsoft

Hello @soumiya ,

 

It would be helpful if you could share the exact error message that you receive in PAD. But, if you are getting an "Element not found" error, Power Automate Desktop has a selector builder tool to assist in customizing selectors according to the target element's CSS path on the web page. Using this tool and looking at the HTML source code behind the CRM can help discover different attributes that can be set to access target element (add button) correctly. Along with other variations of selectors you can use, my suggestion would be to try the below as well:

 

  • button[Type="submit"]
  • button[Class="bubble-element Button clickable-element"][Type="submit"]
  • div[Class="bubble-r-box"]:eq(0) > button[Class="bubble-element Button clickable-element"][Type="submit"]

 

Hope the above makes sense!

Thanks for Your reply...

@adijain 

Would you please let me know the tool that allows us to give the selector directly

 

 

Regards

soumiya

Hello @soumiya, Once you open up the selector builder tool to edit a selector of an element, click on the toggle button as shown below at the left bottom of the window (next to the text Custom - although you might have some other text visible there due to variations in our PAD versions):

adijain_0-1602728140351.png

Then a text window will open up that contains the selector that can be directly edited by you (screenshot below).

adijain_1-1602728430188.png

 

Here you can input variety of different attributes, values or even parse variables to the selector as per your use case. This allows full flexibility in building selectors to make sure that your UI flows run successfully consistently.  

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Top Kudoed Authors
Users online (5,028)