Skip to main content

Hi Team,

I am working on an automation which needs to click on a “variable text” which can be anywhere in then page. I have done similar task in UiPath using “Find OCR” activity to which I pass the variable ( which stores the text to look for) and it works perfectly.

Any help how to acieve same in Automation Anywhere, new here in Automation Anywhere.

Hi @PA_RevCycle 

 

Here’s how you can achieve the same functionality in Automation Anywhere A360 for clicking on a “variable text” on a webpage, similar to UiPath’s “Find OCR” activity:

Solution Using Recorder→ Capture and DOM XPath

  1. Recorder Action:

    • Open the Recorder action in Automation Anywhere A360.
    • Navigate to the webpage where the variable text appears.
  2. Capture Action:

    • Use the Capture action within the Recorder to select the element containing the variable text.
    • Ensure that the Capture action is set to recognize the element based on its properties.
  3. DOM XPath:

    • In the Capture action, switch to the DOM XPath option.
    • Specify a relative XPath that targets the variable text. This XPath should be dynamic enough to locate the text even if its position changes on the page.
  4. Variable Handling:

    • Store the XPath in a variable if needed. This allows you to dynamically adjust the XPath during runtime if necessary.
  5. Click Action:

    • Use the Click action to interact with the element identified by the XPath.
    • Ensure that the Click action is configured to use the XPath stored in the variable.

Example Workflow

  1. Recorder:

    • Start the Recorder and navigate to the target webpage.
  2. Capture:

    • Capture the element containing the variable text.
    • Switch to DOM XPath and specify the relative XPath.
  3. Store XPath:

    • Store the XPath in a variable (e.g., XPathVariable).
  4. Click:

    • Use the Click action to click on the element using the XPath stored in XPathVariable.

Sample Steps in Automation Anywhere A360

1. Recorder: Navigate to the webpage.
2. Capture: Select the element and specify the relative XPath.
3. Variable: Store the XPath in a variable (XPathVariable).
4. Click: Use the Click action to click on the element using XPathVariable.

 

This approach ensures that your automation can handle dynamic web elements effectively, similar to UiPath’s “Find OCR” activity. If these steps help you resolve the problem, please mark it as answered. If you need further assistance or have other questions, feel free to ask!

 


Reply