Package com.ibm.sbt.automation.core.test.pageobjects

Examples of com.ibm.sbt.automation.core.test.pageobjects.ResultPage


    Assert.assertEquals(profile.getUserid(), getProfilePage.getProfileId());
    Assert.assertEquals(profile.getJobTitle(), getProfilePage.getProfileJobTitle());
  }

  private GetProfilePage launchSnippet() {
    ResultPage resultPage = launchSnippet("Social_Profiles_Get_Profile");
    waitForText("name", "Frank Adams", 20);
    return new GetProfilePage(resultPage);
  }
View Full Code Here


    }

    // Internals

    private AddRemoveMembersPage launchSnippet() {
        ResultPage resultPage = launchSnippet("Social_Communities_Add_Remove_Community_Members");

        waitForText("success", "Sucessfully loaded community members for:", 20);

        return new AddRemoveMembersPage(resultPage);
    }
View Full Code Here

    assertNotNull("Expected a non null snippetId", snippetId);
    resultsReady = false;
    setSnippetId(snippetId);
    setAuthType(authType);

    ResultPage resultPage = environment.launchSnippet(this);
    assertNotNull("Null result from snippet: " + snippetId, resultPage);

    if (delay > 0) {
      // optional delay to allow a test to return results
      try {
        Thread.sleep(delay);
      } catch (InterruptedException ie) {
      }
      // TODO: this should not be necessary, investigate why is there
      resultPage = environment.getPageObject(resultPage.getWebDriver());
    }

    return resultPage;
  }
View Full Code Here

    @Test
    public void testNoError() {
        createContext();
        addSnippetParam("sample.id1", TestEnvironment.getCurrentUserUuid());
        ResultPage resultPage = launchSnippet("Social_Profiles_REST_Read_Profile_Photo", AuthType.NONE);
        WebElement contentEl = resultPage.getWebElement().findElement(By.id("content"));
        WebElement imgEl = contentEl.findElement(By.tagName("img"));
        assertNotNull("Unable to find image tag", imgEl);
    }
View Full Code Here

TOP

Related Classes of com.ibm.sbt.automation.core.test.pageobjects.ResultPage

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.