C# Selenium Calender click : Hope everyone is well. I am having difficulties with the clicking a calendar date.

Basically I click on a button a calendar pops up and when i inspect (google chrome) the date the following td is what I need to click;

    <td class="dxeCalendarDay" savedcursor="[object Object]" style="cursor: pointer;">1</td>

I tried the following code but gave me an error;

    FromCalendar = Chromedriver.FindElement(By.Id("ctl00_MainContent_dpStart_DDD_C_mt"));
            IWebElement FromCalendar1 = Chromedriver.FindElement(By.XPath("//tr/td[contains(text(), '>1<'")); //
            FromCalendar1.Click();

The error:

OpenQA.Selenium.InvalidSelectorException: 'invalid selector: Unable to locate an element with the xpath expression //ttr/td[contains(text(), '>1<' because of the following error:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string '//ttr/td[contains(text(), '>1<'' is not a valid XPath expression.



Hope someone can help me. Thank you in advance.


