Hello everyone, this is my first time posting but I've been silently observing for a while.
Exploring selenium with javascript, mocha, and chai
I am dealing with a date picker that has multiple buttons, divs, and spans holding the date numbers. I need to select a date only if it matches the current day. For instance, if the element
div[string() == "1"] == getDate()
then click. However, I'm not sure how to implement this. I've tried using loops and conditional statements, but they don't seem to work inside my test case (it). Please let me know if you need more details.