Is Selenium web driver support WPf based web based application.

328 views
Skip to first unread message

Sanjay Kumar

unread,
Mar 28, 2014, 5:58:28 AM3/28/14
to seleniu...@googlegroups.com
Hi,

i am try to automate web based application and application made with wpf and asp.net platform. can any one tell me is selenium support the WPF based web application.
i am waiting for your quick and positive reply.
Thank in advance.



erki manniste

unread,
Mar 28, 2014, 8:16:53 PM3/28/14
to seleniu...@googlegroups.com

I am sorry if my reply is not positive enough, but as far as I know, it is not possible to automate  WPF gui with webdriver. For web part, assuming a browser app displayed to user in a form of markup ja javascript, you definitely can use webdriver.
 I had an automation project back in 2011-2012 where I had to automate a .NET desktop application (gui in WPF) and it was not nice at all. If you have money, you can try using the CodedUI from microsoft but .... it was not a state of art, at least not back then.. What you have is testing frameworks built upon accessibility frameworks.  Anyway, (assuming you have access to the source,) I managed to get somewhat tolerable results using System.Windows.Automation namespace (http://msdn.microsoft.com/en-us/library/system.windows.automation.aspx), although it did require implementing the AutomationPeer on each and every custom control. Anyway, depending on how much you need, you can easily just send the UIElement.RaiseEvent() with MouseButtonEventArgs (like mouse down routed event, or keyboard).

Or you mean those "browser based WPF apps (xbap)?" - i know nothing of them, sry.

Good luck
erki.

Sanjay Kumar

unread,
Apr 1, 2014, 1:35:33 AM4/1/14
to seleniu...@googlegroups.com
Hi Kirjutas,
Thank you very much for quick and positive reply.

Yes My application is "browser based WPF apps (xbap)" Can any one help me.

Vinothkumar Velusamy

unread,
Apr 2, 2014, 4:58:26 AM4/2/14
to seleniu...@googlegroups.com
Is that we cannot automate WPF applications at all using selenium? If yes, is this is a limitation?


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/96f91144-52e2-427e-983e-3d7990ab7ff7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Best Regards,
Vinoth V
Cell:+91-9740-629-246

Reply all
Reply to author
Forward
0 new messages