Sunday 21 April 2013

How to Develop Automation Framework

 Hi All,

A very nice video explaining the right way to develop automation framework.


Thanks
Dibyaranjan

Monday 15 April 2013

How to setup WatiN in Visual Studio

Hello Guys,

Below video explains how to set WatiN up with Visual Studio. 


Thanks
Dibya

Sunday 14 April 2013

Finding Parent Element in Selenium/WebDriver

Hello All,

This post tells about finding parent element of any element using Selenium/Web Driver. Many times we need to perform some action on elements based on their parents. This post will give you some idea to find out the parent element by using xpath.

Code:

//##################################################//
public WebElement GetParentElement(WebElement elem)
{
    WebElement parentElem=null;
    if(elem !=null)
    {
        parentElem=elem.findElement(By.xpath(".."));
    }
    return parentElem;          
}
//##################################################//


Thanks
Dibya

Related Posts

Related Posts...