I have created a small test using C# in Selenium Webdriver, for this test I first used Selenium IDE and then converted that IDE code to C# code and created Project in VSTS C#. But while running the same I am getting an error.
An unhandled exception of type 'OpenQA.Selenium.NoSuchElementException' occurred in WebDriver.dll
This error occurs at this point
Assert.AreEqual("My Timesheet", driver.FindElement(By.LinkText("My Timesheet")).Text);
I have searched the same over StackExchange but not able to get the exact solution.
HTML is
<a id="" href="#null" title="" onclick="getTimesheet(this, 1, true)">My Timesheet</a>