Here is the code to read the xml test data coded in Java.
Here is the code to use clickAt in Selenium Webdriver
I am using Excel to store the test data and use Visual Studio 2010 C# to code the selenium scripts. When running the scripts I was getting the TF80070 error. I had to click on the confirmation box to continue testing. So it when from automation testing to manual testing (because of the error message).
Anyway here is the solution.
Open excel and then go to excel options. Select Add-Ins and the from the manage select list select COM Add-ins. From the COM Add-ins uncheck Team Foundation Add-in check box. This will stop the annoying error message from appearing.
Here is an example to verify the canonical tag on a web page using Selenium GetLocation. The selenium script is written in C#
public int CheckCanonicalTag()
int resultcount = 0;
string URL = selenium.GetLocation();
if (selenium.IsElementPresent("//link[@rel='canonical' and @href='" + System.Web.HttpUtility.UrlDecode(URL) + "']"))
Console.WriteLine( "Canonical tags is present on the page :" + URL);
Console.WriteLine( "Canonical tags is not present on the page :" + URL);