Skip to main content

Hello everyone,

I'm working on a bot to extract data from a web form. The data I need is contained within several div elements.

To get the data, I'm using the Get Property action with Inner HTML. This method works, but I've noticed a significant performance issue. The bot takes about 5 seconds to process each div, even when the div is empty and has no inner HTML.

This delay is slowing down my bot's execution considerably. Has anyone else experienced this issue? Is there a more efficient or faster way to extract data from these div elements using Automation Anywhere?

Any advice or alternative solutions would be greatly appreciated.

Thank you!
this is an example of  a dive in the form : 

<div aria-labelledby="label_SD_REQUEST_DESCRIPTION" tabindex="0" id="SD_REQUEST_DESCRIPTION1" name="SD_REQUEST_DESCRIPTION1" class="dialog_memo"></div>

Hi ​@LAHCEN AGLAGAL,

 

One alternative that I can recommend here is to use the JavaScript through the Browser → Run JavaScript action. Running JavaScript inside the page avoids the Recorder’s wait logic and reads the DOM directly, often in <100 ms for dozens of elements.
 

  • Browser → Run JavaScript 
  • Return a JSON string with the data you need.
  • Use JSON: Parse to turn it into Dictionary and process it.

@LAHCEN AGLAGAL You can also make a custom DOM XPATH. For your DIV, it would be something like this:

//divd@aria-labelledby=’label_SD_REQUEST_DESCRIPTION’]

Make sure to turn off the PATH and possibly even the CSS path.

You can also see if you can determine if it’s the web page being queried that is causing the slowdown or the bot agent itself.


Reply