How to Automate Windows Based Application using Winium and Selenium
Vložit
- čas přidán 2. 07. 2024
- This video will guide you How to Automate Windows Based Application using Winium.
What is Winium
Win + Selenium= Winium
Winium is Selenium Based Open Source Automation framework for windows platform
You can automate desktop application using Winium
Links
github.com/2gis/Winium
github.com/2gis/Winium.Desktop
github.com/2gis/Winium.Deskto...
github.com/blackrosezy
~-~~-~~~-~~-~
Please watch: "How To Create Maven build For Selenium Framework"
• How To Create Maven bu...
~-~~-~~~-~~-~ - Věda a technologie
Hope you will like the video. Like, Share and Support
following code not click 1
DesktopOptions option=new DesktopOptions();
option.setApplicationPath("C:\\Windows\\System32\\calc.exe");
WiniumDriver driver=new WiniumDriver(new URL("localhost:9999"), option);
Thread.sleep(5000);
driver.findElement(By.name("1")).click();
pls gve solution. following depence im using before run the program i started the server too
com.github.2gis.winium
winium-webdriver
0.1.0-1
Hi Mukesh , Actually i created maven project script for calculator and inspect and winium driver keep inside the project... what when i tried to clicking on any Number then not able to click on client virtual VM machine. But same code i have been written on my machine then it is clickable .can you pls help me , it is very appriciated
Thanks Mukesh !!!
looking forward to more videos.
Thanks for the demo mukesh. awaiting for more on winium..
Thank you so much Mukesh! Your latest technology updates make us updated upto mark
Thanks Sumanthz, keep updating your skill..
Really Useful video :) You have a new subscriber!!
Thanks for this nice tutorial Mukesh!
nice one - this video will make life more easier for desktop application Automation developers, thanks Mukesh
Outstanding session Sir ! Thanks a Ton !
Very useful..thanks Mukesh for explaining this very clearly :)
Thanks for this Demo Mukesh:)
As always awesome video....Thanks.
Thanks Mukesh. Very informative
Thanks for sharing Mukesh 👌
Hi friend, very nice and useful tutorial, very good to explain and very clear.
Thanks for your time, and thanks for your effort. 🙏
I need this video) Thank you, sir!))
Welcome Mate :)
Hi sir,
thanks for uploading a video on winium. am so waiting fr that..
Nice video, man. Thanks for sharing!
Welcome Mate :)
Thanks for the amazing video please make some video to automate excel application using Winium in the way we can combine Selenium and Winium together in Automation.
Thank you bro for your clear explanation
You are welcome Basa
Thanks for sharing this excellent video on Winium Mukesh. Can you please help, how to provide path of Desktop shortcut application, mentioned by you in the video.Cheers
My congratulations Mukesh your video help me much :)
Thanks Tiago 🙏
Hi Mukesh, this is very good video for desktop automation. Shall we automate the windows authentication in web application using this tool
Thanks Mukesh :)
its ... good for us thanks
Hi Mukesh, Very Good video. Thanks for such helpful video. Could you please tell me how we can handle dropdown and list of elements in the windows application?
thank you so much
Good work champ :)
Can we have video on Gradle as well?
Yes Abhishek will make soon.
Hi Mukesh, thanks for sharing, I have a question regarding the Eclipse, when installing the Eclipse, which version should I choose, should I choose Eclipse IDE for Java Developers, or Eclipse for Testers?
Hi Mukesh,
We are using Winium for automating Desktop Appln. Its really helpful.
Can you tell me how to scroll within an Application through Winium ??
Hi Mukesh, Thanks for the video. Can you let me know if we can use this tool for ETL testing and BI Report Testing like SAB BO- Crystal Report(Window Applications).
Hello Mukesh,
I always use to watch your training videos. They are very helpful.
I am trying to automate one Swing Desktop Application, I am trying to use both Inpect.exe and UISpy to inspect the elements, unfortunately both did not work with swing desktop application. Which tool to use to inspect elements for above mentioned application?
Thanks and keep it up! :) (Y)
Regards
Hi Mukesh,
Nice information. i was really looking for some freeware desktop automation tool these days. i am already using selenium for web version of my application and i have to automate desktop version of same application.
eclipse and selenium is already setup on my machine. can i use the same by adding another project for desktop application, as there will be separate pom.xml in that for setting up winium. kinldy confirm?
Hey Mukesh ,Thanks for this video.Can we use winium instead of AutoIT ?
Hi Mukesh,
Here we are opening an application using desktop class and than attaching that reference to winium driver. How to handle/attach already opened desktop application(For Example - Print dialogue box) in winium ?
Hi Mukesh ,
Could you please suggest sites in which Test complete is discussed in detail regarding desktop application
Really very useful tool. Thank you for sharing.. Can you post a vedio using Winium with c#
Yes will do. In blog they have given the steps as well. You can also give a try.
Can you share blog link..Thank you
thanks a lot!
Hey Adriana Ferreira I am glad you liked my tutorial . Keep learning and Sharing. Feel free to contact for any issues related to Automation.
Q: How do you remote execute your test cases from TFS onto a target machine? With Coded UI, which is based on the same Microsoft Automation UI library, I can use Test Agent from TFS , so I hoped Winium allowed something similar.
How can we switchTo() the dialog/message in Desktop application. I could NOT catch the element of the application which display a message first when it launch. Thank you for your answer!
Thanks for the video Mukesh, Does Winium also support CEF (Embedded chromium enabled framework) desktop applications?
Hi Tej I never tried but it should work you can give a try and let me know if it works.
Incredibly
How to configure hub node for winium to perform parallel execution with Jenkins. Currently working in single machine. Same machine as both hub and node.
But if hub and node is different machines then no such element exception displayed. Kindly let me know the solution.
Very Nice Video. Actually I am trying the same on system but not inspecting tools are not working correctly. Is there other tools to inspect elements.??
Good tutorial. My question was how do we automate an application whose path isnot present. Example case is, want to search teams from windo search open team and send message to group. How do I automate this.
Hi Mukesh
As usual your videos are awesome, Now I just want to know how to automate MAC desktop application? Please suggest me any tool.
Thanks
Pragya
Hi Pragya, for MAC I will explore and will update.
okay, Thanks for the reply
@Mukesh Otwani Thanks for this guide to automate desktop application. Our existing selenium framework is running on Linux, could I collaborate the winium project I created with my existing selenium framework to run them on Linux?
No Ramki Winium works with only Windows.
Hi Mukesh, I have been a frequent visitor to your channel. I appreciate all your efforts in making life easier for all the testers out there. I was just following this video and trying to automate the calculator, but UISPY gives me an error on the start that limited user access will limit most of the features and when I run it I don't see the pane item for a calculator as you do. So, I tried to use INSPECT.EXE app instead of UISPy. and the automationid i got for the buttons are "num1Button" etc. But when I run the program, I see that it opened calc app but does nothing and no errors as well. Can you please let me know any reason for this? I am using findElement.id and also tried .name as well. But no luck.
Hey mukesh, any idea which tool to use to automate application which is developed in excel macros, ie complete application is in excel itself ?
Hi Mukesh, Thanks for the video, also can you pls suggest which is the best tool for desktop application with platform independency?
I tried Winium and UiPath but depends on your requirement you can use any of this tool.
Hi Mukesh, another question is whether Winium compatible with Windows 10. I have experience in AutoIT, the AutoIT doesn't seems to compatible much with the Windows 10 Calculator. Will this issue be the same for Winium?
Hi mukesh.. do you have any video tutorial for UFT??
Hi Mukesh,Thanks for such great video. Just a doubt..Can we stop mouse movements for this because i tried moving mouse at runtime,it is failing because of that. So how can we handle this?
Hi Paresh, while doing desktop automation you should not disturb the test machine because it will affect execution.
Okay. Thanks!!
Hi mukesh,
Nice video , helpful one... Thanks for this.
The only query I have is if the system or desktop is locked, will it work in that case also?
No I dont think so. You can check from your side and I will also check.
Hi Mukesh, can we use it for a Clarion(work-station)-based application?
Hi mukesh,Already I have project for selenium web based application if it is possible to integrate winium into that framework or we keep into separate one. pls suggest me
Hi Mukesh,Very informative, i need to Automate mobile Windows Based Application using Winium...?
Thanks fam
Most welcome Mate
Hello Mukesh, I have written one script using selenium RC now I want to use this (winium).But before starting I have just small question Can we use winium and execute the desktop application which is present in some other remote machine.If yes,then can you please tell me how I can proceed.
Hi mukesh, nice tutorial . Do you give online classes for winium?
Hi Prajeeth no training for winium because it’s not that stable and no updates from long time.
I provide training on Selenium only as of now
Hi Mukesh, This really great demo and explanation on this tool. I have a scenario where i move to windows "Save As" dialogue box from a web application. Is there way i can use winium to automate this scenario?
+Amit Chaudhary yes Amit why not it will work. You can use selenium code itself to handle download pop up window
Thanks for your reply. But here we are opening an application using desktop class and than attaching that reference to winium driver. How to handle/attach already opened desktop application in winium ?
Hi Mukesh,
Can we handle already opened outlook application? I have scenario in which selenium clicks on 'send email' button in the browser , which opens an Outlook application, how can i handle that,?
Hi Mukesh, using winium can we automate Oracle application that starts by putting url in browsers and opens java window forms??
Can we use this tool for Sabre Red App automation.
Saber Red app is also a Window based application
Hi thanks lot for uploading this video, I have question Can I use this tool to upload multiple files from windows explorer?
Yes we can do..
Hi Mukesh, I am not able to identify few elements using ui spy. How to locate these elements
Hello Mukesh,
I wrote the program from the video, but for some reason the cursor slides when I click. I tried to define the button with Id and the unfortunately the name is the same.
Maybe you could give me some advice on this?
Is this stable for all windows application and not just for pre defined apps like calc or notepad ?
Hi Mukesh, how can we add wait for winium driver? I tried implicit wait but getting "'setTimeout' is not valid or implemented command" exception. Is there any way to add wait other than Thread.sleep()?
did you find any way?
Hi Mukesh, I have a word application which has embedded web application in it. Will winium work here? WebAppDriver does not recognize the web application fields.
Hi Mukesh ,
I have followed the video to the step but after application getting startedc,it is not clicking on any element .
Hi Mukesh, how can we use UIspy for inspecting elements of Eclipse? I tried using the hovering method but didn't get any specific information related to the elements in eclipse like what we get for the Calculator application.
Hi Akshay few tools wont work for all application so we might have to use multiple tools to inspect.
Okay, so do you know any of them which I can use to automate eclipse itself?
Hi Mukesh, I guess it does support WPF but I have embedded web control (html). those pages are loaded into panel control. Can winium framework support for my WPF application and web control loan under WPF application? Please suggest if you know any other framework support.
Hi, Mukesh
can we automate the flex /AIR based standalone application through Winium ?
Hi Mukesh, Do we have only one video on Winium? If there are more can you please provide link. I couldn’t find it on your channel list.
Hey Lalit, WInium is not coming with new features now.
Mukesh
Could you please add session for working with XPATH on winium. To find child, parent and following elements.
Hi Rahul will try to upload soon.
Hi Mukesh, I am downloading some file from web and now I want to automate to navigate to download folder, open the file then print it. Could you please suggest.
Hi Mukesh while downloading the UISpy.exe file I am not able to inspect the Windows Application and while opening its throwing error as UISpy is running with limited user access (LUA) . This will prevent UISpy from accessing UI Automation details from applications running with higher privilege. See UISpy documentation for further details.
Due to this error I am not able to inspect the elements .
Hi Mukesh, I was automating USD with winium but I am having lot's of issues regarding object identification. How to write xpath in winium ? How to identify the object if data is coming from the third party app (html format) ?
Hi Thank you for great session, I have a question- kindly 1:10 advise.
Q. How can we launch the exe file from folder. Its not the regular app so am not able to find the app id of that .exe. Greatly appreciate any suggestions, thanks 🙏
Hi Mukesh - Could you please tell How to handle native PRINT Dialogue to print the report ??
Hi Mukesh , your Video Helped me , Thanks . When i tried this on my machine i am unable to locate elements.
Instead of clicking 7 , its clicking 5 . locating incorrect elements for all numbers .
can u plse help me with exact code.
Also i tried this on Local machine as well as remote machine for both its unable to locate correct elements.
waiting for your help,
Thanks.
can we also use this in automating iseries/as400 application?
How to select element in Combobox with Winium.Cruciatus?
Hi Mukesh...
I'm trying to automate desktop application developed by Java AWT... I'm not able to find elements using any UI Spy tools, could u help how to do that?
Hi Mukesh, Can u pls show the same in Python
Is it possible to run this code automatically using task scheduler everyday for an automation solution to check if citrix login is working for a server/user?
Hi,
Whan i try to use wait in winium driver Im getting the error "Set time" out is not a valid or implemented command. Is there any work around for that
Hi Mukesh,
Thank you so much for this helpful video.
Currently i am struggling to automate combo box. Will you please help me for this.
Tganks in advance
Hi Amruta, what is exception/issue you are getting?
Can u make video on difference between skuli and winium.
Hey Mukesh. How to handle windows pop up which is already opened by selenium webdriver. Like attach file windows popup
trying to automate SOAPUI, but i am not able to find the element locators using the suggested .exe file.
Could you try and let me know if that is possible as per the .exe file u suggested?
Hi Ashu, you can use httpconnection library which can automate all kind of web services.
Hello Mukesh
how can we override the browser using selenium webdriver?
Hi Mukesh,
Can you please share that how to take the screenshot in winium
Where we can find full video lecture on winium ?
I am using UI Spy but it is not capturing objects in my .jnlp application. Its capturing the maximize, minimize buttons but not the other objects. UI SPY is throwing Tree Validation Exception. Could you please provide help in this?
Suppose i want to verify Running windows Services from TASK manager, can i do it with UI SPy? tool
Good Evening! I am glad to say that I learnt automation by referring your automation blogs and it is really very informative. I am working in Cognizant as a Automation Tester. I have a doubt Currently I need to perform a POC of the Windows 10 Desktop App which is an .appx file. Is it possible to automate the same using the Winium. The windows app has its application id. I am not sure how to pass the application ID while setting up the path. Or it is not possible to do automation with Winium we can do only via Appium ?
option1.setApplicationPath("C:\\Program Files (x86)\\Cisco Systems\\Cisco Jabber\\CiscoJabber.exe");
the Inspect and UISpy tools don't run on windows 64bit. Are there newer versions of these available?
Hey George it should work, I am using Win64 during recording of this video.
Can we do this automation using python rather than java??
Quite interesting sir, This is very helpful.............................
Thanks Akash :) Hope you will implement this