Hi All,
i want to expand a tree structure, to expand i have a
image [+] , on clicking the image, the tree should get expanded, on
clicking the [-] image, the tree should get collapsed.
Please help me on this,i know this is a basic question, i am new to selenium.
Environment used:
Eclipse, Selenium,TestNG
i tried the following code:
selenium.click(<xPath of the image>)
Getting the following error:
com.thoughtworks.selenium.
SeleniumException: ERROR: Element id=('tree')/x:li[2]/x:div not found
Note: i have taken the xpath location using xpath option.
this is the xpath "id=('tree')/x:li[2]/x:div"
Regards,
Baskar