#120 create kias page

This commit is contained in:
T-Midnight 2019-05-20 18:37:24 +04:00
parent 59bc0dbd34
commit 1823c1ba50

View File

@ -0,0 +1,28 @@
package grant;
import core.PageObject;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import java.util.List;
public class KiasPage extends PageObject {
@Override
public String getSubTitle() {
return driver.findElement(By.tagName("h1")).getText();
}
public List<WebElement> getGrants() {
WebElement listContest = driver.findElement(By.tagName("tBody"));
return listContest.findElements(By.cssSelector("tr.tr"));
}
public String getGrantTitle(WebElement grant) {
return grant.findElement(By.cssSelector("td.tertiary")).findElement(By.tagName("a")).getText();
}
public String getFirstDeadline(WebElement grant) {
return grant.findElement(By.xpath("./td[5]")).getText();
}
}