Skip to content

Commit

Permalink
e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
weiquu committed Nov 28, 2023
1 parent 3cc5ea0 commit 2eb1c7b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/e2e/java/teammates/e2e/pageobjects/FeedbackResultsPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,12 @@ private String getAdditionalInfo(int questionNum) {

private WebElement getGivenResponseField(int questionNum, String receiver) {
WebElement questionResponsesSection = getQuestionResponsesSection(questionNum);
List<WebElement> givenResponses = questionResponsesSection.findElements(By.className("given-responses"));
for (int i = 0; i < givenResponses.size(); i++) {
List<WebElement> recipients = givenResponses.get(i).findElements(By.className("response-recipient"));
for (int j = 0; j < recipients.size(); j++) {
if (recipients.get(j).getText().split("To: ")[1].equals(receiver)) {
return givenResponses.get(i).findElements(By.tagName("tm-single-response")).get(j);
}
WebElement givenResponses = questionResponsesSection.findElement(By.className("given-responses"));

List<WebElement> recipients = givenResponses.findElements(By.className("response-recipient"));
for (int i = 0; i < recipients.size(); i++) {
if (recipients.get(i).getText().split("To: ")[1].equals(receiver)) {
return givenResponses.findElements(By.tagName("tm-single-response")).get(i);
}
// List<WebElement> responseComponents = givenResponses.get(i).findElements(By.tagName("tm-single-response"));
// for (int j = 0; j < responseComponents.size(); j++) {
Expand Down

0 comments on commit 2eb1c7b

Please sign in to comment.