I'm very new to Selenium and I've been trying to make the test suite gather data from a table. I don't have the slightest clue on how to do this.
Here's the table I am working with: https://i.sstatic.net/Qrnjj.png
New appointments (dates) are randomly added at random times of the day. I've created a test suite that will constantly refresh at this page. The next step, would be to save all the dates in the table, create a loop to compare if the dates after a refresh happen to be different the original stored dates.
If they are different, notify the user.
Here's a theoretical example of what I'm trying to accomplish.
//Navigate to the appointment page
//Store all the current dates from the table
for (until a new appointment pops up)
{
//Refresh the page
// Compare the dates to the stored dates
if (the dates =/ stored dates)
{
notify the user(me in this case)
}
}
I'm also trying to figure out how I can find the element ID of the table.
Here's a screenshot with some of the html code: https://i.sstatic.net/pMtof.png
The statement that is highlighted has the first date stored.
Any advice would be appreciated, thanks!