-1
//*[@id='post-9505']/h3/a/time
//*[@id='post-9466']/h3/a/time
//*[@id='post-9517']/h3/a/time

In this id number is changing continuously, so how can i write dynamic XPath?

please help me to write XPath for this !

  • 1
    Please do some search before asking. – Alexey R. Feb 9 '18 at 11:03
5

Same like posted here.

//*[starts-with(@id,'post-')]/h3/a/time

OR

//*[contains(@id,'post-')]/h3/a/time

try with other attributes which are not changing continuously.

|improve this answer|||||
  • 1
    This is only my humble opinion but answering obvious duplicates encourages people not to put effort to the questions quality which in turn decreases the overall quality of our community. – Alexey R. Feb 9 '18 at 12:03
  • It is better to adhere the rules posted here: sqa.stackexchange.com/help/how-to-answer. – Alexey R. Feb 9 '18 at 12:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.