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:
for each ele in wb.document.getelementsbytagname("img")
if instr(ele.innerhtml, "alt=""captcha""") > 0 then exit for
next
'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