Question

I'm trying to capture few buttons but they aren't being recognized in A360.

  • 26 February 2022
  • 8 replies
  • 16 views

 

(I've also tried using keystrokes to navigate to the button, but no use)

Also I did try changing the DOMXpath but I don't understand where it's going wrong.

 

 

 

wanna select next buttonbuttons to select

 

 

inspecting NEXT buttoninspect NEXT

 

 

Xpath in A360Xpath in A360

 

the bot says successful completion. but the button isn't getting clicked.

 


8 replies

no results.

Userlevel 3
Badge +7

Hi @sirispandana velagala​ ,

 

Could you pass this XPath into the Inspection Window just to validate whether it returns a unique match?

//button[@id='ext-gen426']

 

Kind Regards,

Ashwin A.K

Userlevel 3
Badge +7

Hi @sirispandana velagala​ ,

 

Then that means the XPath requires a bit more polishing, would be so kind as to include a larger snippet of the DOM so that I can help you with it?

 

Kind Regards,

Ashwin A.K

Userlevel 3
Badge +7

Or how about this:

 

//button[.='Next'] -> Does this return a unique match?

 

Kind Regards,

Ashwin A.K

This returns a unique match.

 

imageThis is how I set the attributes. Still no luck.

 

figured out how the keystrokes are working.

gonna try to use them.

 

Thanks !!

 

 

Userlevel 3
Badge +7

Hi @sirispandana velagala​ ,

 

I usually keep only the DOMXpath checked, and the rest inactive and it works out fine for me.

Its difficult to say for sure what the issue is unless I have access the the instance itself, but I'm glad you were able to come up with a solution on your own!

 

Kind Regards,

Ashwin A.K

Userlevel 3
Badge +7

Understood, some elements are tricky to work with.

 

Here is something else you could try, simply Capture the element and then pass in the DOMXpath and see if the bot is able to interact with it.

 

If that works, then slowly start unchecking the Object Properties one by one, and run the process each time just to check which property is responsible for successfully targeting the element of interest.

 

In my experiments, I noticed that elements encased inside frames require the HTML HasFrame to be enabled.

 

It could be different for you, its all trial and error.

 

If nothing else work, then you have to rely on Simulate Keystrokes.

 

Kind Regards,

Ashwin A.K

 

 

I've tried keeping only DOMXpath active as well, but the application has IFrame which is messing with the DOMXpath.

 

Reply