Advertisement
Guest User

checkSaveImage_stepdef.java

a guest
Mar 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.     @Given("^Save Iamge open new tab as '.+?' (\\w+?) with the attribute '(\\w+?)' and value '(.+?)'$")
  2.     public void readValue(String type, String attribute, String value){
  3.         WebElement webElement = findElementByXPath(String.format("//%s[@%s=\"%s\"]", type, attribute, value));
  4.         String text = webElement.getAttribute("value");
  5.         thePageLoadsInNewWindowUrl(text);
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement