Examples of logElementTree()


Examples of org.uiautomation.ios.UIAModels.UIAElement.logElementTree()

  }

  @Test
  public void logElementTreeNoScreenshot() throws Exception {
    UIAElement element = driver.findElement(c);
    JSONObject tree = element.logElementTree(null, false);
    Assert.assertTrue(tree.has("tree"));
  }

  @Test
  public void logElementTreeRootNoScreenshot() throws Exception {
View Full Code Here

Examples of org.uiautomation.ios.UIAModels.UIAElement.logElementTree()

  @Test
  public void logElementTreeWithScreenshot() throws Exception {
    UIAElement element = driver.findElement(c);
    File f = new File("logElementTreeWithScreenshotTmp");
    f.delete();
    JSONObject tree = element.logElementTree(f, true);
    Assert.assertTrue(tree.has("tree"));
    Assert.assertTrue(f.exists());
    f.delete();
  }
View Full Code Here

Examples of org.uiautomation.ios.UIAModels.UIAElement.logElementTree()

    element.tap();

    NameCriteria criteria =
        new NameCriteria("sentenceFormat", L10NStrategy.serverL10N, MatchingStrategy.regex);
    UIAElement el = driver.findElement(criteria);
    JSONObject log = el.logElementTree(null, true);
    Orientation o = Orientation.fromInterfaceOrientation(log.getInt("deviceOrientation"));
    Assert.assertEquals(o, Orientation.PORTRAIT);
    JSONObject tree = log.getJSONObject("tree");

    Assert.assertEquals(tree.getString("type"), "UIAStaticText");
View Full Code Here

Examples of org.uiautomation.ios.client.uiamodels.impl.RemoteIOSDriver.logElementTree()

      cap.setCapability(IOSCapabilities.IOS_SWITCHES,
                        Arrays.asList(new String[]{"-e", "useQA", "YES"}));
    }

    RemoteIOSDriver driver = new RemoteIOSDriver(new URL("http://localhost:4445/wd/hub"), cap);
    System.out.println(driver.logElementTree(null, false).toString(2));

    RemoteIOSDriver driver2 = new RemoteIOSDriver(new URL("http://localhost:4445/wd/hub"), cap);
    System.out.println(driver2.logElementTree(null, false).toString(2));
    System.out.println(driver.logElementTree(null, false).toString(2));
View Full Code Here

Examples of org.uiautomation.ios.client.uiamodels.impl.RemoteIOSDriver.logElementTree()

    RemoteIOSDriver driver = new RemoteIOSDriver(new URL("http://localhost:4445/wd/hub"), cap);
    System.out.println(driver.logElementTree(null, false).toString(2));

    RemoteIOSDriver driver2 = new RemoteIOSDriver(new URL("http://localhost:4445/wd/hub"), cap);
    System.out.println(driver2.logElementTree(null, false).toString(2));
    System.out.println(driver.logElementTree(null, false).toString(2));


//    WebElement agree = driver.findElement(By.name("l10n('Agree')"));
//    agree.click();
View Full Code Here

Examples of org.uiautomation.ios.client.uiamodels.impl.augmenter.ElementTree.logElementTree()

    try {
      largeTableViewButton.click();

      ElementTree tree = IOSDriverAugmenter.augment(driver);

      JSONObject json = tree.logElementTree(null, false);

      assertNotNull( json, "We can get the page source for a large tableview");
    } catch (Exception e) {
      fail("Exception caught while performing logElementTree on page with large TreeView. App crashed");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.