How to write Xpath by class in the pass

I have a drop down where all the drop down elements are defined dynamically.
So i am trying to write xpath expression using class.Can any one please help me on this.

Thank you

Paul Default Asked on January 18, 2016 in Program QA Automation.
Add Comment
1 Answer(s)

Dear.. Why Don’t you try with start-with type of XPath, this may help you to get Dynamic change value of drop down. Below  is the syntax or you can Google it about.

//a[starts-with(@href, “buy.php/”)]

kajugul Train Answered on January 22, 2016.
Add Comment

Your Answer

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