Jump to content

AutoIt + Java integration Exception Handling


nares
 Share

Recommended Posts

I am trying to automate login application (.exe) using Autoit and java integration. 
As a part of this automation i am able to login successfully but other part i want to check
Login Failure case where username/Password given by user is incorrect, 
So how can we detect Login failed part or any way to  handle Exception in this case.

Link to comment
Share on other sites

  • Moderators

@nares welcome to the forum. You will find it is generally difficult to help without seeing your code. Post what you're using, or a reproducer if you're working with sensitive data; it will go a long way toward helping us help you ;)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

@JLogan Thank you  for your immediate response 

        autoIt.controlSend("Title Of active window", "", "", "{SHIFT}+{TAB}", false);
        autoIt.controlSend("Title Of active window", "", "", "{DELETE}", false);
        autoIt.send("UserName");
        autoIt.sleep(5000);
        autoIt.send("{TAB}", false);
        autoIt.send("Password");

For above snippet code i need help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...