Testing a SignalR application using WebDriver in IE9

April 16, 2013 - hive-memory ie9 selenium testing

I was having problems testing a SignalR application in IE9 using the Selenium IEServerDriver - the WebDriver instance would block indefinitely after navigating to a page that starts a hub connection.

SignalR Issue 293 seems to imply that the IE WebDriver is not compatible with foreverFrame - it never recognises that the page has finished loading. Changing the hub connection code to:

$.connection.hub.start({ transport: \['longPolling', 'webSockets'\] });

fixed the issue and made IE9 testable again via WebDriver.