Esempio n. 1
0
 @Test(expected = NoSuchContextException.class)
 public void testContextError() {
   driver.context("Planet of the Ape-ium");
 }
Esempio n. 2
0
 @Test
 public void testSwitchContext() {
   driver.getContextHandles();
   driver.context("WEBVIEW_1");
   assertEquals(driver.getContext(), "WEBVIEW_1");
 }
Esempio n. 3
0
 @Test
 public void testGetContext() {
   assertEquals("NATIVE_APP", driver.getContext());
 }
Esempio n. 4
0
 @Test
 public void testGetContextHandles() {
   assertEquals(driver.getContextHandles().size(), 2);
 }
Esempio n. 5
0
 @After
 public void tearDown() throws Exception {
   driver.quit();
 }