RE: How to find the id from the Expanding the tree node in selenium web driver using java. can you please put some code and tutorial for this?

charu Default Asked on January 12, 2016 in Selenium WebDriver.

can you please post your scenerio here..?

on January 12, 2016.

I have a folder structure.
scenarios :
1. Click on the + of the folder structure and expand the folder.
2. And again expand the sub- folder and so on till 3 sub- folder.
3. Now select the value from the folder and drag and drop.

Problem: if i get  the XPath value of the first folder using find Elements. the error is “Unable to locate element”

on January 12, 2016.

can you please check if the folder is in same frame or is in some other iframe..?

on January 12, 2016.
Add Comment
6 Answers

Kindly share the code which you have tried for better understanding

FYI , Unable to locate element “- problem arises when

1. Your specified Xpath is wrong – refer http://toolsqa.com/selenium-webdriver/xpath-firebug-firepath/

solution: If you’re using firefox browser , add Plugin call “FireBug” and for chrome http://toolsqa.com/selenium-webdriver/xpath-helper/

2. when you tried to access the element before the page loads – refer http://toolsqa.com/selenium-webdriver/wait-commands/

Solution: Add wait command

Train Answered on January 13, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.