Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I changed xml path like below. But it gives invalid xml path type of error

verifyAttribute //meta[@name='description'] and @content 'Rent Vacation Rentals direc'

enter image description here

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Now it's working by this code

verifyElementPresent //meta[@name='description' and @content='Content']

share|improve this answer
    
Accept your answer yourself please, to make it answered. Thanks! –  Dmitry Cheremushkin Jun 28 at 12:22

Try the following solution:

<tr>
<td>verifyAttribute</td>
<td>//meta[@name='description']@content</td>
<td>'Rent Vacation Rentals more than 250,000 vacation properties.'</td>
</tr>    
share|improve this answer
1  
Why? And the original poster has the AND within the [ ], think your "instead of" is wrong :) –  Niels van Reijmersdal Jun 25 at 16:32
    
You're right, thanks. I've corrected the answer. –  Dmitry Cheremushkin Jun 25 at 17:58

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.