-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathStudentPage.java
More file actions
33 lines (24 loc) · 1.02 KB
/
StudentPage.java
File metadata and controls
33 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package selenium.analytics.students;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class StudentPage {
private WebDriver driver;
public StudentPage(WebDriver driver) {
this.driver = driver;
driver.findElement(By.id("studentPage"));
}
public String getLetterSoundAssessmentEventsUrl() {
WebElement exportToCsvButton = driver.findElement(By.id("exportLetterSoundAssessmentEventsToCsvButton"));
return exportToCsvButton.getAttribute("href");
}
public String getLetterSoundLearningEventsUrl() {
WebElement exportToCsvButton = driver.findElement(By.id("exportLetterSoundLearningEventsToCsvButton"));
return exportToCsvButton.getAttribute("href");
}
public String getWordLearningEventsUrl() {
WebElement exportToCsvButton = driver.findElement(By.id("exportWordLearningEventsToCsvButton"));
return exportToCsvButton.getAttribute("href");
}
}