kfrajtak / winappdriver Goto Github PK
View Code? Open in Web Editor NEWFull open-source Selenium driver for WinForms applications using Windows Automation
License: MIT License
Full open-source Selenium driver for WinForms applications using Windows Automation
License: MIT License
Hello Karel,
I'm was trying to bind the stuff, which is present in the official WAD documentation at https://github.com/microsoft/WinAppDriver/blob/master/Docs/AuthoringTestScripts.md and the current source code. Unfortunately, I am unable to find the described capabilities, like for example appArguments
or appTopLevelWindow
in the source code of the current handlers, but only in the tests. Although, I could see some undocumented caps, like mode
or mainWindowTitle
inside https://github.com/kfrajtak/WinAppDriver/blob/master/WinAppDriver/CommandHandlers/NewSessionCommandHandler.cs
Could you please help me to find a correct place where I could look for the actual implementations? Or could it be that this source and the one used/documented by MS are different?
The original WinAppDriver doesn't work without enabled developer mode. Does your tool need it too?
in my test app there is a modal app that i want to bring up
and then to be able to test it as well
but currently the driver blocks on clicking a button that starts a dialog ( i think by design )
i tried t take out the WaitOne in ClickElementCommandHandler
which gt it past it, but still seems to be a block in the task scheduler or gui thread as when i make further calls, eg find they don't run until the modal dialog goes
When a button is clicked and a modal window is displayed waiting for user's confirmation, the execution is blocked. This was partially solved by calling `InvokePattern.Invoke()' method in a thread, but it does not work all the time.
Also handler add to handle WindowOpenedEvent
is not invoked (or is but only sometimes).
Hello:
I found your repo., it looks good,
But I want to know if I can use the repo in a WinForms App project target .NET 5.0/6.0.
I am using Visual Studio 2022 on Windows 10 PC.
For example: if I want to launch a Chrome browser. Then use repo to connect to the running Chrome, and navigate to https://www.google.com/, then input search string in the input box, like "UI Test", then press Enter key.
If for WinForms not possible, then target .net framework is also OK.
Thanks,
I noticed that Microsoft/WinAppDriver only supports Windows 10 (Home and Pro) and Windows Server 2016. So does this project support other systems?
In addition, why does Microsoft/WinAppDriver only support Windows 10 (Home and Pro) and Windows Server 2016? Does it not depend on Microsoft UIAutomation ?
Please tell me, Thanks bro.
Hello @kfrajtak ,
I want to help you with developing the WinAppDriver. But I need it for testing a commercial application,
can I do it with Salesforce license?
Can you add some usages of the driver like in https://github.com/Microsoft/WinAppDriver,
because I didn't get how to set up a test with it?
doesn't handle splash screen popups well, same as msofts
adding in a delay after the start of the process or the like might be the way to go
Logger.Info($"MainWindowHandle {process.MainWindowHandle}");
System.Threading.Thread.Sleep(10000);
process.Refresh();
Logger.Info($"MainWindowHandle {process.MainWindowHandle}");
int delayCount = 10;
while ((int)process.MainWindowHandle == 0 && delayCount > 0)
{
Logger.Info($"Wiating for a MainWindowHandle");
System.Threading.Thread.Sleep(500);
process.Refresh();
delayCount--;
}
Hello,
Just having a look to see if I can investigate using this as a viable alternative to winappdriver (official)... Do you have a list of endpoints from w3c driver that are supported? I couldn't see from the documentation. I wondered if I might be able to see how to integrate this in replacement of the official driver with appium solution if I can't resolve issues from the black-box offering...
Many thanks!
Does this tool help automating the USD 4.1. Its a software for Dynamics 365, with WPF, UIA components and cefsharp process of Chrome running inside.
just seems to need the line
hostConfigs.RewriteLocalhost = false;
in host.cs
means you don;t have to run as an admin user
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.