Issue
I am trying to count the number of times a element with a partial text of "25516.B1-"
appears on the page.
Right now I am trying this. However it returns 17 even though there are only 3 instances of the element on the page.
Count 3 basiskerntaken
${count}= Get Element Count //*[contains(.,"25516.B1-")]
Log To Console ${count}
Solution
I fixed it by doing the following
${count}= Get Element Count //td[contains(text(),'25516.B1-')]
Should Be Equal As Integers ${count} 3
This returns 3 elements and passed the test.
Thanks for all the answers!
Answered By - Mwiendels
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.