Examples of GoogleSearchPage


Examples of test.pageobject_example.pages.GoogleSearchPage

      }
    }
   
    public static void testGoogleSearch(){
      //Create a new instance of GoogleSearch page
      GoogleSearchPage googleSearchPage = new GoogleSearchPage(new HtmlUnitDriver());

        // go to Google ("http://www.google.com")
      googleSearchPage.open();

        // Enter something to search for
      googleSearchPage.enterSearchForm("Cheese!");

        // Now submit the form, and get the next page object
      GoogleSearchResultPage googleSearchResultPage = googleSearchPage.submitForm();
              

        // Verify: Check the title of the page     
        String pageTitle = googleSearchResultPage.getTitle()
        System.out.println("Page title is: " + pageTitle);
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.