Reputation: 209
How can i write an xpath that would give me the following element:<span class="ng-binding ng-scope" ng-if="sideData.orderRequestType == 'import'"> ORI - 643 </span>
?
Thank you!
Upvotes: 0
Views: 24
Reputation: 779
You should consider what part of the element doesn't change.
For example, if class
parameter is always the same, you can build xpath based on class
:
//span[@class='ng-binding ng-scope']
Upvotes: 1