java - Xpath for facebook newsfeed box is not working -
i trying perform following using selenium webdriver , java :
- login facebook
- click on user name
- post word "how you!!" newsfeed
above first 2 steps working 3rd don't. unable find newsfeed text box.
i trying xpath : "//*[text()=\"what's on mind?\"]"
i can not use class or id dynamic , change every time.
note : have test xpath firepath , @ there says valid.
try:
"//*[@placeholder=\"what's on mind?\"]"
because, not text
attribute named placeholder
.
Comments
Post a Comment