C# WPF application using selenium web driver

819 views
Skip to first unread message

Jim Evans

unread,
May 20, 2013, 7:07:41 AM5/20/13
to seleniu...@googlegroups.com
There *shouldn't* be anything preventing WebDriver from successfully running from within a WPF executable. We'll need more detail to be able to help. "It doesn't work," is rarely enough to diagnose the problem. What browser? Are there any exceptions thrown?

Jim Evans

unread,
May 21, 2013, 6:21:03 AM5/21/13
to seleniu...@googlegroups.com
I used the asterisks to simulate a vocal expression. If we'd been having a conversation in person, my tone would indicate that while I don't believe there to be any reason why the .NET bindings should not work in a WPF application, anything is possible.

I'm quite sure I've used the bindings in console and WinForms applications. I don't recall trying it in a WPF app. Since you're using VS 2012, I'd make sure I was targeting .NET 3.5 or 4.0, just to eliminate that as a possible problem. It should be a fairly simple matter to throw together a WPF form with only a button that runs a simple WebDriver test method. Since you haven't seen fit to share any code, it's difficult to make more specific recommendations.

Jim Evans

unread,
May 21, 2013, 2:47:03 PM5/21/13
to seleniu...@googlegroups.com
And just to follow up, I was able to successfully use the .NET bindings in a WPF app today. You can see my code at https://gist.github.com/anonymous/5622222

Yaniv Sheffer

unread,
May 22, 2013, 2:30:24 AM5/22/13
to seleniu...@googlegroups.com
Thanks for the reply's Jim,
I'll test it on a smaller scale project as you mentioned.

Reply all
Reply to author
Forward
0 new messages