Skip to main content
Question

Keystroke simulation within a web application

  • February 24, 2022
  • 4 replies
  • 61 views

Hi,

 

I have a bot that logins into a web app. Once there, it has to navigate to a different screen by simulating several keystrokes. First it has to select 'File' tab from the top menu. When 'File' expands, it has to select 'Open' -> 'Applications' -> 'Financial Close Management' -> 'Reconciliation Manager' (as shown below).

 

image 

For some reason use of Alt+f works sometimes and sometimes doesn't and that is when problem starts, because all other subsequent keystrokes are useless. What happens sometimes when bot simulates Alt+f is that it only marks the 'File' tab, but it doesn't expand it. Like this:

 

image 

I am building the bot with AA 11.3 Enterprise Client, and this is the code currently in use:

 

image 

Any help/advice/hint is much appreciated! Ty.

4 replies

Ashwin A.K
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 2445 replies
  • February 24, 2022

Hi @Sergej Dedic​ ,

 

The problem with Keystrokes is it is incredibly delicate, and like you stated, there is not way for the bot to recognize whether the Keystrokes have interacted with the web elements in the way it is supposed to.

 

The only way to resolve this is by adding long delays, also in between keystrokes.

 

The ideal way to automate this is by using Object Cloning, have you given this a try yet?

 

Kind Regards,

Ashwin A.K


  • Author
  • Cadet | Tier 2
  • 2 replies
  • February 24, 2022

Hi Ashwin,

 

thank you for the reply and advice. I was thinking the same and it looks like I will have to use OC instead of keystroke simulation.


Ashwin A.K
Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 2445 replies
  • February 24, 2022

Hi @Sergej Dedic​ ,

 

Also, if the URL you are trying to navigate to isn't dynamic, you could directly navigate to it after logging in.

 

Kind Regards,

Ashwin A.K


Forum|alt.badge.img+19
  • Most Valuable Pathfinder
  • 2697 replies
  • February 24, 2022

Hi @Sergej Dedic​ ,

 

OC with proper delays will work in the case.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings