This is a migrated thread and some comments may be shown as answers.

Unable to find a element using xpath

2 Answers 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 16 Dec 2014, 02:18 PM
Hi,
I am just starting and i am very new to this , please help me with this beginner que
When i use the find element by xpath the element is not getting discovered 

ActiveBrowser.Find.ByXPath<HtmlSpan>(".//*[@id='treeview']/ul/li[1]/div/span[2]/span[2]");

2 Answers, 1 is accepted

Sort by
0
Zach
Top achievements
Rank 1
answered on 17 Dec 2014, 04:28 PM
Please share with us the html DOM structure so we can better determine why your code doesn't work
0
Boyan Boev
Telerik team
answered on 19 Dec 2014, 11:28 AM
Hello Anand,

Thank you for contacting us.

As Zach said please send us a screen shot of your DOM in order to help you best.

What exception do you get when you execute your test?

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Anand
Top achievements
Rank 1
Answers by
Zach
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or