/** * Click the browse title link and verify the number of filters * * @throws InterruptedException */ public void browseTitle() throws InterruptedException { epor.browseTitle.click(); List<WebElement> titleAZ = driver.findElements(By.className("ODSearch_az_box")); System.out.print("Title: "); for (WebElement title : titleAZ) { System.out.print(title.getText() + "; "); pf.captureScreenShot(driver, title.getText()); title.click(); Thread.sleep(1500); } System.out.print("\n"); assertEquals(28, titleAZ.size()); }
/** * Click and browse genre link * * @throws InterruptedException */ public void browseChannel() throws InterruptedException { epor.browseChannel.click(); List<WebElement> channels = driver.findElements(By.className("ODSearch_Channel")); System.out.print("Channel: "); for (WebElement channel : channels) { System.out.print(channel.getText() + "; "); channel.click(); pf.captureScreenShot(driver, channel.getText()); Thread.sleep(1500); } System.out.print("\n"); assertEquals(2, channels.size()); epor.browseChannelThree.click(); Thread.sleep(1500); }
/** * Click and browse genre link * * @throws InterruptedException */ public void browseGenre() throws InterruptedException { epor.browseGenre.click(); List<WebElement> genres = driver.findElements(By.className("ODSearch_genreBox")); System.out.print("Genres: "); for (WebElement genre : genres) { System.out.print(genre.getText() + "; "); genre.click(); pf.captureScreenShot(driver, genre.getText()); Thread.sleep(1500); } System.out.print("\n"); assertEquals(7, genres.size()); epor.browseGenreComedy.click(); Thread.sleep(1500); }