How to get data from Ajax request in Selenium?
问题 I have been trying to check the balances of Starbucks gift cards in my application, https://www.starbucks.com/card I was trying to catch the response made with ajax request, once check balance button is clicked automated, How can I get the ajax response in Selenium? using (var driver = new ChromeDriver()) { driver.Navigate().GoToUrl(@"https://www.starbucks.com/card"); driver.FindElement(By.Id("Card_Number")).SendKeys("7848549479363805"); driver.FindElement(By.Id("Card_Pin")).SendKeys(