In this section, we will have a look at seeing if the browser is online or offline. Currently, this only works on mobile drivers from Selenium WebDriver. In this section, we will need to cast the Selenium WebDriver object to
BrowserConnection and then access the methods that are found on that object.
Let's get into action:
import org.junit.*; import org.openqa.selenium.*; public class TestChapter10 ...