TheDcoder Posted November 8, 2017 Share Posted November 8, 2017 @Earthshine UIAutomation might be a more universal alternative for automating GUIs: Earthshine 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Daka Posted November 8, 2017 Author Share Posted November 8, 2017 Ok I understend a littlebit more thanks to you people I did a lot of websitetest with selenium, but that was more for webautomation it was easy you just go to lets say chrome inspect element and you know where it is id or xpath etc. So you are telling me it should be the same with this too? Like you mentioned many of java programs and UIAutomation MS this is interesting, so I need to dig more to find out, what is optimal tool to find the elements? If any suggestion more like take this one only then please share Link to comment Share on other sites More sharing options...
TheDcoder Posted November 8, 2017 Share Posted November 8, 2017 2 minutes ago, Daka said: what is optimal tool to find the elements? For UIAutomation: Inspect from Windows Development Kit and Simple Spy supplied in @junkew's wrapper. Earthshine 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Earthshine Posted November 8, 2017 Share Posted November 8, 2017 8 hours ago, TheDcoder said: @Earthshine UIAutomation might be a more universal alternative for automating GUIs: I use Coded UI myself. Straight from the MS UI Automation source My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Daka Posted November 8, 2017 Author Share Posted November 8, 2017 I tried the tools that you mentioned above but still not luck https://github.com/blackrosezy/gui-inspect-tool it gives me the same results. I could share this program, but it is connected to hardware and can't work with out hardware. Link to comment Share on other sites More sharing options...
Earthshine Posted November 8, 2017 Share Posted November 8, 2017 (edited) I looked it up. It’s embedded on a device. No info on what it’s written in si even Inspect.exe did not find anything useful? Edited November 8, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Daka Posted November 8, 2017 Author Share Posted November 8, 2017 Ok I made video to show you, that there is no text like Longitudinal cross-section of head, there are some ids but no texthttps://youtu.be/tkXywZ4Pp6s then I have other thing is where the organ is I cant access any id, and all those triangles are clickable. Also other links the tool cant find it it just find the above box and doesn't go deeper. that's why I went to x y position, but it changes on the resolutions here is what Im talking about Link to comment Share on other sites More sharing options...
Earthshine Posted November 8, 2017 Share Posted November 8, 2017 did you try the spy tool in the link TheDcoder posted? The IUI Automation stuff My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Earthshine Posted November 8, 2017 Share Posted November 8, 2017 looks like your application was authored in Delphi. I recommend a product called TestCompete for this. Try their trial and record a test. It can probably automate it. https://smartbear.com/product/testcomplete/overview/ My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Daka Posted November 8, 2017 Author Share Posted November 8, 2017 ok thank you very much I will try this, how do you know it could be delphi? Link to comment Share on other sites More sharing options...
Earthshine Posted November 8, 2017 Share Posted November 8, 2017 looking at the control class names and google searching... lol My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Daka Posted November 8, 2017 Author Share Posted November 8, 2017 smartbear is kind of expensive, but just to try and see if I can find it will be great. tnx again Earthshine 1 Link to comment Share on other sites More sharing options...
Earthshine Posted November 8, 2017 Share Posted November 8, 2017 well, there is always Python (which I dearly love) https://media.readthedocs.org/pdf/pywinauto/uia/pywinauto.pdf My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
junkew Posted November 8, 2017 Share Posted November 8, 2017 (edited) Try findbmp in examples or imagesearch for 5x5 yellow pixels Edited November 8, 2017 by junkew Earthshine 1 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...
Earthshine Posted November 9, 2017 Share Posted November 9, 2017 (edited) @TheDcoder, hey, I can run Simple Spy on my Win10 box but my Server 2008R2 box, it crashes. Edit, well, under the AutoIt editor it crashes windows explorer, but compiled runs fine? weird. I'll figure this out. thanks @TheDcoder and @junkew Edited November 9, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
TheDcoder Posted November 9, 2017 Share Posted November 9, 2017 @Earthshine UIAutomation should be available by default from Windows Vista and Server 2008 and you can get it on XP and Server 2003 by installing .NET Framework 3.0. So I doubt your server lacks something important, is it a hard crash (i.e Windows shows a "This program has crashed" dialog) or an error thrown by AutoIt? Earthshine 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Earthshine Posted November 9, 2017 Share Posted November 9, 2017 (edited) thank you mate! today it works. I probably just needed a reboot. that server runs 24x7 and RARELY goes down unless power outage and the battery puts it to sleep. rebooted, now it runs compiled and in the editor. it would crash with an error and I was trying to get that error and post. now it works fine. lol it looked like an app crash and I never bothered to get the details. I will if i ever see it again. Edited November 9, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Earthshine Posted November 9, 2017 Share Posted November 9, 2017 (edited) well, I spoke too soon, this was behind VMware, crashed... Before that, it requires a restart of Windows Explorer shell before getting to this error below Edited November 9, 2017 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
TheDcoder Posted November 9, 2017 Share Posted November 9, 2017 Try running the script uncompiled and take a screenshot of the error, the screenshot of the compiled script doesn't help very much. Earthshine 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Earthshine Posted November 9, 2017 Share Posted November 9, 2017 (edited) here you go. btw, thanks for all the help! it's not so important that runs on the host, but in VMs where I do the development I could use it. I'll make sure it works in my 2008R2 VMs Edited November 9, 2017 by Earthshine My resources are limited. You must ask the right 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