java - Xpath for facebook newsfeed box is not working -


i trying perform following using selenium webdriver , java :

  1. login facebook
  2. click on user name
  3. 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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -