#103 update overriding method

This commit is contained in:
T-Midnight 2019-05-22 23:12:30 +04:00
parent b1c090b0ea
commit 16885cc94f

View File

@ -1,10 +1,11 @@
package grant; package grant;
import core.PageObject; import core.PageObject;
import org.openqa.selenium.By;
public class GrantsDashboardPage extends PageObject { public class GrantsDashboardPage extends PageObject {
@Override @Override
public String getSubTitle() { public String getSubTitle() {
return null; return driver.findElement(By.tagName("h2")).getText();
} }
} }