Skip to content

Commit 5fa474d

Browse files
committed
AbstractPage.getLinkByText(): replaced method's body by getElement() method invocation.
Should be in e88f35a commit. No functional changes.
1 parent 7a330f0 commit 5fa474d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/test/java/ru/mystamps/web/tests/page/AbstractPage.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,7 @@ protected boolean elementWithTagNameExists(String tagName) {
216216
}
217217

218218
protected WebElement getLinkByText(String linkText) {
219-
try {
220-
return driver.findElement(By.linkText(linkText));
221-
} catch (NoSuchElementException ex) {
222-
return null;
223-
}
219+
return getElement(By.linkText(linkText));
224220
}
225221

226222
private WebElement getElement(By byMethod) {

0 commit comments

Comments
 (0)