コード例 #1
0
 @Then("^user resizes the window to (\\d+) x (\\d+)$")
 public void user_resizes_the_window_to_x(int arg1, int arg2) throws InterruptedException {
   df.resizeWebDriver(
       arg1,
       arg2,
       By.cssSelector("div[data-role='navmenu_banner'] > a[data-role='navmenu_bannerbutton']"));
 }
コード例 #2
0
 @Then("^system takes snapshot of homepage$")
 public void system_takes_snapshot_of_homepage() throws IOException {
   df.takeScreenshot();
 }
コード例 #3
0
 @Given("^system compares the snapshot with expected image$")
 public void system_compares_the_snapshot_with_expected_image()
     throws IOException, InterruptedException {
   df.compareImages();
 }
コード例 #4
0
 @Given("^system cuts image from screenshot$")
 public void system_cuts_image_from_screenshot() throws IOException {
   df.cutRequiredImage();
 }