Tony Peterson
Tony Peterson

Reputation: 21172

Browser-Compatibility Testing with Visual Studio and ASP.NET apps

I'm currently testing browser compatibility with IE7 for an app that I built initially for use with Firefox. The assumption at the time within our organization was that we could get everyone to use Firefox, but that's been called into question, so here I am. As a result, I have used many Firefox specific features and attributes that I need to check for and replace with equivalents. In order to do this I've found that I need to extensively debug the javascript to find the incompatible areas.

We use Windows exclusively here, so I don't need to test compatibility in other operating systems, at least not yet.

In order to immediately debug code changes, I need to run a test locally, but if I hit F5, it opens in Firefox until I go change the default browser.

Is there a way in Visual Studio to specify that a debug session should be opened in a certain browser, and a way to quickly change that, or otherwise, is there some batch or script that can be used to quickly change the default browser?

Also, any other tips for browser-compatibility testing?

Upvotes: 0

Views: 2670

Answers (2)

DanSingerman
DanSingerman

Reputation: 36502

You can use Selenium to automate browser testing, and you can do that with both IE and Firefox (you create the tests using FF, then run in (almost) any browser)

That would be my approach.

Upvotes: 1

Program.X
Program.X

Reputation: 7412

In the File menu you have two options:

View in browser (Ctrl+Shift+W) View with ... (which allows you to select the browser)

You can use the latter one to set your default browser when you're ready to switch to IE. It also lets you set browser dimensions.

Upvotes: 1

Related Questions