String chromeProfile =
ArrayList
switches.add("--user-data-dir=" + chromeProfile);
capabilities.setCapability("chrome.switches", switches);
driver = new ChromeDriver(capabilities);
Here is a video link this shows you how to create test list using Visual studio and how to run the tests from command prompt. This can be used to create batch jobs and schedule them with in the build or to run every night.
Selenium IDE 1.5.0
New – Added support for Firefox 9
Bug – Changes to user extensions weren’t being updated in Firefox 8 – issue 2801
Bug – Security error was thrown when trying to type into file (upload) input fields in Firefox 8 – issue 2826
Bug – Improved French locale – issue 1912
Bug – break command was failing – issue 725
Bug – source view is now fixed width (monospace) – issue 522
New – Implemented ‘select’ formatting for WebDriver bindings (Java, C#, Python, Ruby)
Bug – Fixed compile-time and run-time errors in the code formatted for WebDriverBackedSelenium
Bug – Fixed ‘baseUrl’ and ‘get’ formatting errors in various formatters to handle relative and absolute URLs
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 the Selenium RC code for selenium.Close in Webdriver. This code is in Visual Studio C#
public void Close()
{
driver.Close();
}
Here is the Selenium RC code for selenium.GetSelectedLabel in Webdriver. This code is in Visual Studio C#
public string GetSelectedLabel(string xpath)
{
string text = "";
if (driver.FindElement(By.XPath(xpath)).Selected)
{
text = GetText(xpath + "/option[@selected]");
}
return text;
}