Interacting with browser connections - Selenium

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 browser is currently online.

Let's see how this looks.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Selenium Topics