Skip to main content
Solved

I have this issue when i like to use a record

  • November 19, 2025
  • 10 replies
  • 88 views

Forum|alt.badge.img+2

There was a problem at line 2

This may be due to the following reason: An unexpected error occurred. Could not execute chrome request within the supplied timeout Please contact system administrator. Location: Get logged in (line 2)

To continue, edit the bot and fix the error. Then, try again. If you continue to see this message, please contact your system administrator.

Código: ba.bot.execution.error

Best answer by mariano.carames

This configuration works perfectly for me, thank you very much!

This topic has been closed for replies.

10 replies

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • November 19, 2025

Hi ​@mariano.carames,

 

You are getting this error from which action?

Mostly this error is happening with the Browser: Run JavaScript action due to issues with the JavaScript in use.


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • November 19, 2025

Hi ​@Padmakumar  
I get this error both when running it with js and with the recorder, whether selecting them one by one or recording and having them generated automatically.


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • November 20, 2025

Hi ​@Padmakumar  
I get this error both when running it with js and with the recorder, whether selecting them one by one or recording and having them generated automatically.

Can you share a snippet of these two actions?


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • November 20, 2025

This is with Recorder
 

This with JS
 


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • November 20, 2025

This is with Recorder
 

This with JS
 

Ok.

 

  1. Recorder: Capture → What is the wait time mentioned in the action for system response? If it is already there as shown below, kindly try after changing the package version. 

               

  1. Browser: Run JavaScript → Since the root cause of the issue can be mainly the given code, please share the JS code that you are using.

Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • November 20, 2025
  1. Recorder: Capture → I have the time set the same as you, at 15 seconds.
  1. Browser: Run JavaScript →  document.getElementById('username').value=''
    document.getElementById('password').value=''

Zaid Chougle
Navigator | Tier 3
Forum|alt.badge.img+17
  • Navigator | Tier 3
  • November 20, 2025

Hi ​@mariano.carames , you can use the wait for object and pass that to actually dynamically wait. Also to go into dynamic conditions you can put that action in the while look and in that you can again check so that once it is available it will break out of the loop


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • November 20, 2025
  1. Recorder: Capture → I have the time set the same as you, at 15 seconds.
  1. Browser: Run JavaScript →  document.getElementById('username').value=''
    document.getElementById('password').value=''



Have you tried after changing the Recorder package version?

For the JS action, please try the following:

1. Combine into one-liner

  • Try chaining both assignments in one statement:
JavaScriptdocument.getElementById('username').value = 'yourUser'; document.getElementById('password').value = 'yourPass';

       AA handles this better because it’s a single execution block.

2. Add explicit waits before JS
Before the JS action:

  • Use Browser: Wait for page to load (e.g., 30–60 seconds).
  • Optionally, add a Wait for Condition for username and password.

3. Use Recorder for input

  • Instead of JS, use Recorder: Capture to set values in those fields. It’s more reliable because AA uses object-based selectors rather than injecting JS.

4. Wrap JS in AA-supported syntax
Sometimes adding return true; at the end helps:

JavaScriptdocument.getElementById('username').value = 'yourUser';
document.getElementById('password').value = 'yourPass';
return true;

5. Include the problematic Browser: Run Javascript action inside an Error Handler: Try block

  • Inside the Error Handler: Catch includes:
    1. Delay action;
    2. The same Browser: Run Javascript action OR use the Recorder package for the same functionality;
  • Select the On error, continue with next action checkbox at the Error Handler: Catch action.

      This will ensure any failed attempts will be performed once again to proceed with the bot execution.


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • Answer
  • November 20, 2025

This configuration works perfectly for me, thank you very much!


Zaid Chougle
Navigator | Tier 3
Forum|alt.badge.img+17
  • Navigator | Tier 3
  • November 21, 2025

This configuration works perfectly for me, thank you very much!

Check it multiple times, as it might go beyond that because of Internet speed, speaking from experience😅