Skip to content

Commit

Permalink
fix: corrected selector for ThenICanSeeOnlyTheFollowingRecordsInTheLo…
Browse files Browse the repository at this point in the history
…okup (#85)
  • Loading branch information
LukeBenting authored Jun 8, 2021
1 parent 100f2e3 commit d8df17a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public static void ThenICanSeeOnlyTheFollowingRecordsInTheLookup(string lookupNa
}

new WebDriverWait(Driver, TimeSpan.FromSeconds(5))
.Until(d => d.FindElement(By.CssSelector("ul[aria-label=\"Lookup Search Results\"] li")));
.Until(d => d.FindElement(By.CssSelector("ul[aria-label=\"Lookup results\"] li")));
var items = Driver
.FindElements(By.CssSelector("ul[aria-label=\"Lookup Search Results\"] li"))
.FindElements(By.CssSelector("ul[aria-label=\"Lookup results\"] li"))
.Select(e => e.Text.Split(new string[] { "\r\n" }, StringSplitOptions.None)[0]);

items.Count().Should().Be(recordNames.Rows.Count, because: "the flyout should only contain the given records");
Expand Down

0 comments on commit d8df17a

Please sign in to comment.