Skip to main content

Recorder click issue

  • November 5, 2025
  • 6 replies
  • 40 views

Forum|alt.badge.img+1

On one of the webpage  Haing multiple tables with different header and having selectAll checkbox .

I have created selector which identifying the elements when we inspect webpagge manually,but when bot tries it can only identify first table checkbox for second one it is neither clicking nor throwing any error.

need suggestion on this 

6 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • 870 replies
  • November 5, 2025

@prajaktaghadage Can you give us a snippet of the HTML to inspect? Not a screen shot, but the underlying code.

Usually, this is solved using a dynamic DOMXPATH -- an XPATH that has a variable in it to loop through all the repeating items.

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/search-criteria-the-recorder-package.html


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • November 5, 2025

<table aria-describedby="Product Table" id="ProductTable">
                                     <thead>
                                     <tr class="ColumnNameRow">
                                         <th>OEM/Model</th>
                                         <th>Vendor</th>
                                         <th>Manufacturer</th>
                                         <th>
                                             
                                                 <label class="bootstrap-checkbox">
                                                     <input type="checkbox" id="SelectAllCheckbox_613" data-id="613">
                                                     <span class="success"></span>
                                                 </label>
                                                                         
                                                                         
                                                                         <label>
                                                                             <label for="SelectAllCheckbox_613">(all)</label>
                                                                         </label>
                                                
                                             
                                         </th>
                                     </tr>
                                     </thead>
                                     <tbody>
                                         <tr>
                                             <td>
                                                 <a data-id="5723" class="singleProd" style="cursor: pointer;">Dell Pro Tower QCT1250</a>
                                             </td>
                                             <td>Dell Federal Systems, L.P.</td>
                                             <td>Dell</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5723" name="ProductCheckbox_5723" data-id="5723">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                         <tr>
                                             <td>
                                                 <a data-id="5743" class="singleProd" style="cursor: pointer;">EliteDesk 8 Tower G1i Desktop AI PC</a>
                                             </td>
                                             <td>HPI Federal LLC</td>
                                             <td>HP</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5743" name="ProductCheckbox_5743" data-id="5743">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                         <tr>
                                             <td>
                                                 <a data-id="5763" class="singleProd" style="cursor: pointer;">HP EliteDesk 8 G1i Tower</a>
                                             </td>
                                             <td>NCS</td>
                                             <td>HP</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5763" name="ProductCheckbox_5763" data-id="5763">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                         <tr>
                                             <td>
                                                 <a data-id="5783" class="singleProd" style="cursor: pointer;">VS-U760I</a>
                                             </td>
                                             <td>Ace Computers</td>
                                             <td>Ace Computers</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5783" name="ProductCheckbox_5783" data-id="5783">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                         <tr>
                                             <td>
                                                 <a data-id="5803" class="singleProd" style="cursor: pointer;">HP EliteDesk 8 G1i Tower Desktop PC</a>
                                             </td>
                                             <td>Better Direct, LLC</td>
                                             <td>HP</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5803" name="ProductCheckbox_5803" data-id="5803">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                         <tr>
                                             <td>
                                                 <a data-id="5823" class="singleProd" style="cursor: pointer;">HP EliteDesk 8 G1i Tower PC</a>
                                             </td>
                                             <td>Blue Tech, Inc.</td>
                                             <td>HP</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5823" name="ProductCheckbox_5823" data-id="5823">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                         <tr>
                                             <td>
                                                 <a data-id="5843" class="singleProd" style="cursor: pointer;">Dell Pro Tower QCT1250</a>
                                             </td>
                                             <td>Strategic Communications, LLC</td>
                                             <td>Dell</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5843" name="ProductCheckbox_5843" data-id="5843">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                         <tr>
                                             <td>
                                                 <a data-id="5862" class="singleProd" style="cursor: pointer;">Dell Pro Tower Plus QBT1250</a>
                                             </td>
                                             <td>Iron Bow Technologies, LLC</td>
                                             <td>Dell</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5862" name="ProductCheckbox_5862" data-id="5862">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                         <tr>
                                             <td>
                                                 <a data-id="5878" class="singleProd" style="cursor: pointer;">Dell Pro Tower Plus QBT1250</a>
                                             </td>
                                             <td>Sterling Computers Corp</td>
                                             <td>Dell</td>
                                             <td>
                                                 
                                                   <label class="bootstrap-checkbox">
                                                                                                     <input type="checkbox" id="ProductCheckbox_5878" name="ProductCheckbox_5878" data-id="5878">
                                                                                                     <span class="success"></span>
                                                                                                 </label>
                                               
                                             </td>
                                         </tr>
                                     </tbody>
                                 </table>


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • 870 replies
  • November 5, 2025

@prajaktaghadage Thank you!

I took your code, added the Bootstrap library, and temporarily posted it here:

https://developer.automationanywhere.com/_____test.php

Here is how I was able to solve it:

Line 1 gets the total number of rows in the table. You will need to capture the entire table like this:

Lines 2 and 3 take the row value set on line 1 (which, for some reason, returns a string!), and sets the correct number of rows. If you don’t decrement the number of rows, it will loop around and check the “All” checkbox.

Line 4 loops through the number of rows, setting the $nCounter$ variable, which keeps track of which checkbox we’re working with.

Line 5 is the big one. I captured the first check box, then I had to turn off several properties: HTML ID, Name, Path, HTML Name, and CSS Selector. Finally, I modified the DOMXPath, changing the tr[1] to tr[$nCounter.Number:toString$] to loop through the checkboxes.

I hope that helps!


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • November 5, 2025

Hi,

This is helpful but I have the situation is there are multiple tables available on webpage and checkboxes are having same path

 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • 870 replies
  • November 5, 2025

@prajaktaghadage The way that HTML works, each object on the page (table, text box, check box, etc.) has a unique DOMXPath. Consider capturing the first checkbox in each table, and copying/pasting the DOMXPath into Notepad and comparing how the DOMXPaths are different.

If you cannot determine what’s different, you can use Chrome’s “Developer Tools” (F12), use the Arrow tool to select the first checkbox, then right-click on the <input type=”checkbox”...> and select Copy > Copy XPath or Copy full XPath. 

Use that to help you determine the unique XPath.

If you still can’t determine the unique XPaths, consider using the Path (disabling the DOMXPath). 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 3 replies
  • November 5, 2025

I want to use DOmx Path since further I am going to add Gen AI on failure of domx path