Menu

#19 assertLinkPresentWithImage("foo") fails if foo isn't first

closed-fixed
nobody
None
5
2004-06-17
2004-03-02
Anonymous
No

For the following HTML.

<a href="addusers.html"><img height="22" width="22"
border="0" alt="New User"
src="/access/images/sub.x.point.gif"/><img height="22"
width="58" border="0" alt="New User"
src="/access/images/sub.users.newuser.gif"/></a>

assertLinkPresentWithImage("sub.x.point.gif") is true,
while
assertLinkPresentWithImage("sub.users.newuser.gif") is
false.

The getChildImageElement method of the
LinkImagePredicate returns only the first element
within the link of type img. In reality, it should
return an enumeration of them for iteration by the
matchesCriteria method.

Discussion

  • Vivek Venugopalan

    • status: open --> pending
     
  • Vivek Venugopalan

    • status: pending --> closed-fixed
     

Log in to post a comment.