How to find web-element when name and id are dynamically changing every-time


Please help me to find web-element when name, id are dynamic also class is not unique .
also, I don’t prefer to use  x path locator.

Add Comment
  • 1 Answer(s)

    In such cases,better to write the Xpath manually by taking two properties in Common.

    Generally the xpath will be like:  //tagname[@atttribute=’value’].

    You can write by using AND ,OR operators and clubbing the two properties in order to avoid  duplicate.

    Train Answered on April 28, 2016.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.