Solved

web automation switch iframe to target element

  • 27 September 2023
  • 10 replies
  • 245 views

Userlevel 3
Badge +10
  • Automate the Universe SME
  • 30 replies

Hi,

 

Is there a way using Web Automation package to switch to a different iFrame within the page? 

As there is no way to target an element in that iFrame using Xpath.

 

I tried also using capture, but unfortunately had no luck combining web automation package with capture package just doesn’t want to capture that specific elements.

 

Thanks

icon

Best answer by ravi.pothana 27 September 2023, 18:47

View original

10 replies

Userlevel 3
Badge +8

Hi @jayqb,

Can you please give a try with AISense recorder to capture the objects.
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/using-the-workbench/cloud-aisense-overview.html

Userlevel 3
Badge +10

Hi Ravi,

Your solution seems to work ok.. only when I’m logged in into the device and I run it from developer user account. When I schedule the bot to run using bot runner account I’m getting this error:

 

Your Chrome plug-in is either not installed or disabled. For trouble-shooting help, visit the Automation Anywhere Documentation and search for 'Chrome plug-in'.

 

Why is that? 

Userlevel 3
Badge +8

Hi @jayqb,

Can you please try adding additional delays in the bot to allow the webpage/UI Objects to be first fully loaded before executing the recorder options.
 

Userlevel 3
Badge +10

Hi @jayqb,

Can you please try adding additional delays in the bot to allow the webpage/UI Objects to be first fully loaded before executing the recorder options.
 

Hi @ravi.pothana 
I did that and it still the same.. like i said previously bot seems to work fine when run manually on the device, but when it get scheduled to run it as unattended bot i can see that its getting stuck on capture package. I think the step is trying to download additional resources 1 of 2 and then it stops completely. 

Userlevel 3
Badge +8

Hi @jayqb,

Can you please try this: 

  1. Stop the Automation Anywhere Bot agent service.
  2. Navigate to C:\ProgramData\AutomationAnywhere\GlobalCache.
  3. Delete the content of the Global cache folder.
  4. Start the Automation Anywhere Bot agent service.
  5. Try re-running the Bot and see if that helps.

Also may I know which version of control room and bot agent your running on. 

If the above steps didn't help please upload the bot agent logs for further troubleshooting. 

Log file locations: https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/working-with-automation-tasks/analyze-bot-agent-logs.html

Userlevel 3
Badge +10

hi @ravi.pothana 

I followed the steps above, but I’m still getting the same issue.

I’m attaching Bot_launcher and node_manager logs is there anything else you need? 

 

Thanks

Userlevel 3
Badge +8

Hi @jayqb,

This seems like Google Chrome is not using the extension that corresponds with the Recorder package version in your bots.

Can you please try below troubleshooting steps and ensure the version prerequisites are met. 
https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/using-the-workbench/google-chrome-extension-troubleshooting.html

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/deployment-planning/cloud-chrome-changing-extension.html

 

Userlevel 3
Badge +10

I will have a look at the links you provided, but don’t you think that it’s weird I have no issues when I run this manually on the device while logged in as developer user and when i schedule it to run as unattended bot it doesn’t work? I even have the screen open and watch the bot while it runs so the resolution is the same. 

Userlevel 3
Badge +10

@ravi.pothana 

 

I triple checked everything from the links you provided and it seems to be in order.

I rebooted the machine, restarted services, reinstalled chrome plugin, but still no luck it’s hanging on the same recorder step. 

 

Userlevel 3
Badge +8

Hi @jayqb,

Please go through this documentation and see any of the solutions mentioned will help. 
https://apeople.automationanywhere.com/s/article/Your-Chrome-Plugin-is-either-not-installed-or-disabled

Reply