コード例 #1
0
 public PortfolioPage clickExitAndSave() {
   getDriver().findElement(exitAndSave).click();
   PageHelpers.waitForSeconds(1500);
   return new PortfolioPage();
 }
コード例 #2
0
 public EditPortfolioPage setChapterTitle() {
   String[] titlesArray = {
     "Language Arts",
     "Mathematics",
     "Science",
     "Health",
     "Handwriting",
     "Personal Organization",
     "Physical Education (P.E.)",
     "Social Skills",
     "Career Planning",
     "Instrumental Music � specific instrument",
     "Movement or Eurythmy",
     "Handwork or handcrafts",
     "Life Lab or gardening",
     "Dramatics",
     "Art",
     "Greek and Roman History",
     "Martial Arts",
     "Ice Skating",
     "Music",
     "Dance",
     "Personal Finance and Investing",
     "Aerobics",
     "Yoga",
     "Figure skating",
     "Spanish or other foreign language",
     "Leadership",
     "Special Education Day Class",
     "Driver�s Education",
     "Resource Program",
     "Statistics",
     "World Religions",
     "Cycling",
     "Bowling",
     "Keyboarding",
     "Computer Repair",
     "Speech",
     "Adaptive P.E.",
     "Trigonometry",
     "Economics",
     "Physical Fitness",
     "Computer Graphics",
     "Occupational Therapy",
     "Astronomy",
     "Political Science",
     "Digital Arts",
     "Photoshop",
     "Programming",
     "Reading",
     "Meteorology",
     "Equine Science",
     "Gymnastics",
     "Outdoor Survival Skills",
     "Speech and Debate",
     "Animal Science",
     "Ecology",
     "Golf",
     "Rock Climbing",
     "Desktop Publishing",
     "English",
     "Oceanography",
     "Veterinary Science",
     "Environmental Science",
     "Web Design",
     "Basic Math",
     "Botany",
     "Geology",
     "Forensic Science",
     "Critical Thinking",
     "Rhetoric",
     "Pre-algebra",
     "Physics",
     "Chemistry",
     "Organic Chemistry",
     "Biology",
     "Zoology",
     "Basic Yard Care",
     "Financial Management",
     "Consumer Math",
     "Small Engine Mechanics",
     "Auto Mechanics",
     "Marine Biology",
     "Algebra",
     "Geometry",
     "Gardening",
     "Japanese",
     "German",
     "Latin",
     "Culinary Arts",
     "Life Science",
     "Earth Science",
     "Food Science",
     "Anthropology",
     "Home Management",
     "Physical Science",
     "Computer Aided Design {Digital Media}",
     "Photography",
     "Home Organization",
     "Social Studies",
     "Performing Arts",
     "Theatre Arts",
     "Genealogy",
     "Geography",
     "Ancient Civilizations",
     "Leather Working",
     "Philosophy",
     "Logic",
     "Medieval and Renaissance",
     "Sports",
     "Sculpture",
     "Ceramics",
     "Pottery",
     "Music History",
     "Music Theory",
     "Music Fundamentals",
     "U.S. History and Government",
     "French / Spanish / Latin",
     "Photojournalism",
     "Yearbook",
     "Art History",
     "Drawing",
     "Painting",
     "Computer Science or Lab",
     "Home Economics",
     "Instrumental Music",
     "Band",
     "Choir",
     "Drama",
     "Physical Education",
     "Woodshop",
     "Metal Shop",
     "Business Technology",
     "English as second language",
     "World Literature",
     "Ancient Literature",
     "Medieval Literature",
     "Renaissance Literature",
     "Modern Literature",
     "British Literature",
     "American Literature",
     "Composition",
     "Creative Writing",
     "Poetry",
     "Grammar",
     "Vocabulary",
     "Debate",
     "Journalism",
     "Publishing Skills"
   };
   String randomTitle = titlesArray[new Random().nextInt(titlesArray.length)];
   PageHelpers.waitForVisibility(chapterTitle);
   getDriver().findElement(chapterTitle).clear();
   getDriver().findElement(chapterTitle).sendKeys(randomTitle);
   return this;
 }
コード例 #3
0
 public EditPortfolioPage addNewChapter() {
   PageHelpers.waitForVisibility(newChapter);
   getDriver().findElement(newChapter).click();
   PageHelpers.waitForSeconds(3500);
   return this;
 }
コード例 #4
0
 public boolean materialMessageIsDisplayedInPortfolio() {
   PageHelpers.waitForSeconds(1500);
   return getDriver().findElement(materialMessage).isDisplayed();
 }
コード例 #5
0
 public EditPortfolioPage selectMakePublic() {
   getDriver().findElement(makePublik).click();
   PageHelpers.waitForSeconds(1500);
   return this;
 }
コード例 #6
0
 public EditPortfolioPage clickVisibilityButton() {
   PageHelpers.waitForVisibility(visibilityButton);
   getDriver().findElement(visibilityButton).click();
   PageHelpers.waitForSeconds(1500);
   return this;
 }
コード例 #7
0
 public EditPortfolioPage setUrlLink() {
   getDriver().findElement(urlLink).clear();
   getDriver().findElement(urlLink).sendKeys("http://a" + PageHelpers.generateUrl(30));
   PageHelpers.getScreenshot();
   return this;
 }