Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Given("^Save Iamge open new tab as '.+?' (\\w+?) with the attribute '(\\w+?)' and value '(.+?)'$")
- public void readValue(String type, String attribute, String value){
- WebElement webElement = findElementByXPath(String.format("//%s[@%s=\"%s\"]", type, attribute, value));
- String text = webElement.getAttribute("value");
- thePageLoadsInNewWindowUrl(text);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement