Reputation: 1457
Iam working with test automation .for that am using ruby capybara to write test scripts.Using
Ruby cabybara code i want to check a text is present is not inside dev element
how can i possible?
<div class="modal-header">
<h3 class="orderCompleteNoEmailLabel">
Your order is placed, but one more step is needed to complete it.
</h3>
</div>
Here i want to check the text Your order is placed, but one more step is needed to complete it. is present or not.
Upvotes: 0
Views: 234
Reputation: 11396
the following xpath should return true if the text contains the given string
//h3[contains(., "Your order is placed")]=true()
Upvotes: 1