And how to do this if verification img does not have a name:

<img src="/sw/verification/verif.php?c=login" alt="captcha" class="captcha"/>

Thanx a lot !
i decided to answer this in your own thread
loop through all the images to find the one with some correct value

vb Code:
  1. for each ele in wb.document.getelementsbytagname("img")
  2.   if instr(ele.innerhtml, "alt=""captcha""") > 0 then exit for
  3. next
  4. 'ele i now an object of that specific image
it may be possible that alt is a property of the image, then you could just use
if ele.alt.value = "captcha" then exit for
but i was not sure so used instr