O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interacting with browser connections

Now that we can download and cache files using the application cache, it would be a good idea to see how well they work when there is no network connection. The mobile drivers have the ability to go into airplane mode. Hopefully, future versions of desktop browsers will have this ability too.

We will start by having a look at whether the browser is online.

Seeing if the browser is online

Seeing if a browser is online during a test can be quite useful when we are testing how our application works offline. This is useful for working against sites that may have the application cache configured and you want to check if the site works when offline. To know that, we first need to make sure we know how to check if the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required