prayi Posted October 9, 2018 Share Posted October 9, 2018 Hi All, I am launching Java based application and injecting the credentials. As of now the behavior of script getting changed every time its launched. I found that since its java based its loosing its focus from the current window. First it will launch the main page and will request for profile to be created and then pass credentials in next window. On each window I am using hotkeys to move to next window. While script is executing by mistake it i click on other tab its looses its focus. How to make it so that it should not loose its focus? PFA screenshot for your reference. Any help on this is much appreciated. Link to comment Share on other sites More sharing options...
junkew Posted October 9, 2018 Share Posted October 9, 2018 Use JAB for details see faq31 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
prayi Posted October 15, 2018 Author Share Posted October 15, 2018 (edited) @junkew Thanks for your inputs. Sorry I am new to programming and trying to understand on how to use JAB. I have attached my code here, is it only i need to call JAB function untill where i want to have focus set or different. Can you guide on that I will try accordingly and test. Edited November 9, 2018 by prayi Link to comment Share on other sites More sharing options...
junkew Posted October 15, 2018 Share Posted October 15, 2018 sorry but you have to spend (a lot of) time on reading Java Accessibility Bridge. Base example starts here and some examples are in the forum but all not simple and not unified in a simple udf FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
prayi Posted October 15, 2018 Author Share Posted October 15, 2018 @junkew Thanks, I will check and get back to you if any issue or questions. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now