#14 Add ability to test non-submit button images

open
nobody
None
5
2007-10-02
2007-10-02
Mark K
No

I don't really like the function names that this patch uses, but it gets the job done and scans for regular "img" tags. The assert function is "assertImageExists('label')". It scans for "title" or "alt" just like assertImage(), but can easily be modified to look for the ID attribute.

This is patched against 1.0.1beta2.

Discussion

  • Mark K

    Mark K - 2007-10-02

    patch to add assertImageExists()

     
  • Marcus Baker

    Marcus Baker - 2008-04-07

    Logged In: YES
    user_id=695819
    Originator: NO

    Hi...

    If the image is in an anchor tag, the image can be clicked with SimpleTest using clickLink(). There needs to be some recognisable text in the link, but the alt text can be used.

    Clicking a raw image is not usual browser behaviour unless extra JavaScript is used. Is this what you are trying to simulate?

    yours, Marcus

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks