IE404 Posted July 2, 2018 Share Posted July 2, 2018 Hi there, i just want to make sure my strategy in controlling windows programs or web-based-applications is the best one. Right now, lets say i want to oben the settings dialog in a (already running) notepad++ file with a shortcut. then my concept is this : I look for a keyboard shortcut (ALT+SOMEKEY for example) to "reach" the Top horizontal Notepad Menu, then send Arrow-Keys-Down to reach the desired setting, and press enter. Is this the right/best/only way to do it? The same questions apllies to Web-Based-Applications. There, i "count" how often i have to use the "TAB" Key, to reach the desired Link, and then send a "Mouse Click". From my understanding this is the only way (apart from pixel search, which is not recommended if i read this forum right). i hope you get my question, english is not my native language Link to comment Share on other sites More sharing options...
Bert Posted July 2, 2018 Share Posted July 2, 2018 depends on the application you are using. You may want to look at this: The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Danp2 Posted July 2, 2018 Share Posted July 2, 2018 Look up WinMenuSelectItem in the help file. Also, there are various UDFs to control web browsers, so sending keystrokes and mouseclicks should be used as a last option when dealing with a browser. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
junkew Posted July 2, 2018 Share Posted July 2, 2018 It depends on your requirements. Simulating real user activity then sendkeys and clicks are fine. Just speed up your actions in a robust and more stable way then element recognition is a better approach. If there is an api thats most quick and stable bypassing gui then use that. 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...
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