@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']")); }
@Then("^system takes snapshot of homepage$") public void system_takes_snapshot_of_homepage() throws IOException { df.takeScreenshot(); }
@Given("^system compares the snapshot with expected image$") public void system_compares_the_snapshot_with_expected_image() throws IOException, InterruptedException { df.compareImages(); }
@Given("^system cuts image from screenshot$") public void system_cuts_image_from_screenshot() throws IOException { df.cutRequiredImage(); }