Jump to content
nares

AutoIt + Java integration Exception Handling

Recommended Posts

nares

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.

Share this post


Link to post
Share on other sites
JLogan3o13

@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 ;)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
nares

@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.

Share this post


Link to post
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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.