If you don’t have to click on it try using I.fillField()
instead.
Find the day element by DOM inspector and then you can use e.g. I.click(locate(element).withText(12))
Well, actually withText
its translated to XPath’s contains()
. So better would be exact text match using XPath directly, e.g.: //div[text()='12']