not able to find element in selenium webdriver

31 views
Skip to first unread message

norf...@gmail.com

unread,
Mar 25, 2015, 5:22:41 PM3/25/15
to seleniu...@googlegroups.com
Hello,
 
Please help!!!
 
Here is the link on app -
element - <a class="cvf-addfolder t-addfolder t-button" title="Add Folder" href="#">Add Folder</a>
 
be able to record and replay using link=Add Folder in selenium ide.
 
but when I tried to use xpath, or link in the Java as - webDriver.findElement(By.xpath("//a[contains(text(),'Add Folder')]"), it would not work.
 
Tried webDriver.findElement(By.linkText(curProperty.get("Add Foldert"))) - still not work.
 
any idea? please help.
 
Thanks.

AnonymousAB

unread,
Mar 26, 2015, 8:38:11 AM3/26/15
to seleniu...@googlegroups.com


Hello,
 
May be you can try the below xpaths:
 
 1. xpath=//a[title()="Add Folder"]
 2. xpath=//a[text()="Add Folder"]


   Thanks.
Reply all
Reply to author
Forward
0 new messages