Package org.auraframework.util

Examples of org.auraframework.util.AuraUITestingUtil


    protected void setCurrentDriver(WebDriver currentDriver) {
    this.currentDriver = currentDriver;
    }
   
    protected void setAuraUITestingUtil() {
      auraUITestingUtil = new AuraUITestingUtil(currentDriver);
    }
View Full Code Here


    }

    private long doBase(Mode mode) throws Exception {
        long start = System.currentTimeMillis();
        open("/auradocs", mode);
        AuraUITestingUtil util = new AuraUITestingUtil(getDriver());
        WebElement content = util.findDomElement(By.cssSelector(".content"));
        assertNotNull("Should have content showing", content);
        assertTrue("Should have content displayed", content.isDisplayed());
        return System.currentTimeMillis() - start;
    }
View Full Code Here

    }

    private long doReference(Mode mode) throws Exception {
        long start = System.currentTimeMillis();
        open("/auradocs#reference", mode);
        AuraUITestingUtil util = new AuraUITestingUtil(getDriver());
        WebElement sidebar = util.findDomElement(By.xpath("//ol[contains(@class,'auradocsSidebar')]"));
        assertEquals("We expect 8 sidebar menu items", 8, sidebar.findElements(By.xpath("li")).size());
        return System.currentTimeMillis() - start;
    }
View Full Code Here

    }

    private long doComponent(Mode mode) throws Exception {
        long start = System.currentTimeMillis();
        open("/auradocs#reference?descriptor=aura:component&defType=component", mode);
        AuraUITestingUtil util = new AuraUITestingUtil(getDriver());
        WebElement tabset = util.findDomElement(By.xpath("//ul[contains(@class,'tabList')]"));
        assertEquals("We expect 6 tabs in the component help", 6, tabset.findElements(By.xpath("li")).size());
        return System.currentTimeMillis() - start;
   }
View Full Code Here

    private long doAPI(Mode mode) throws Exception {
        long start = System.currentTimeMillis();
        open("/auradocs#reference?topic=api:Aura");
        //TODO: this should test more.
        AuraUITestingUtil util = new AuraUITestingUtil(getDriver());
        WebElement content = util.findDomElement(By.cssSelector(".content"));
        assertNotNull("Should have content showing", content);
        assertTrue("Should have content displayed", content.isDisplayed());
        return System.currentTimeMillis() - start;
    }
View Full Code Here

TOP

Related Classes of org.auraframework.util.AuraUITestingUtil

Copyright © 2018 www.massapicom. 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.