Tudor
Tudor

Reputation: 209

Need assistance with locating an element on the page

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

Answers (1)

kotoj
kotoj

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

Related Questions