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
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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

June 14th PVA AMA Carousel (up on May 25th, take down June 15th) (1).png

Join us on June 14th!

We're excited to announce the first Power Virtual Agents AMA on June 14, 2022!

Users online (2,388)