#120 create kias page
This commit is contained in:
parent
59bc0dbd34
commit
1823c1ba50
28
src/test/java/grant/KiasPage.java
Normal file
28
src/test/java/grant/KiasPage.java
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user