Launching Webdriver on Google Chrome custom profile 


String chromeProfile =
ArrayList switches = new ArrayList();
switches.add("--user-data-dir=" + chromeProfile);
capabilities.setCapability("chrome.switches", switches);
driver = new ChromeDriver(capabilities);

By Pavandeep Puddupakkam on December 20, 2011 | WebDriver | A comment?
Tags: , ,

Create test list and run tests in nightly builds 

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.

More…

By Pavandeep Puddupakkam on December 15, 2011 | Visual Studio 2010 | 2 comments
Tags: , , ,

Selenium IDE 1.5.0 to be released on 15th December 2011 

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

By Pavandeep Puddupakkam on December 14, 2011 | Selenium IDE | A comment?
Tags: , , , , , , , ,

TFS Visual Studio 2010 and Excel Integration TF80070 error – Selenium Excel Test Data 

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.

Using selenium.Close in Webdriver 

Here is the Selenium RC code for selenium.Close in Webdriver. This code is in Visual Studio C#

public void Close()
{
driver.Close();
}

By Pavandeep Puddupakkam on | WebDriver | A comment?
Tags: , ,

Using selenium.GetSelectedLabel in Webdriver 

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;
}



Automation Tips
Automation Tools
QA Interview Q&A
Selenium IDE
Selenium RC
Software Testing
WebDriver
XPath