clicking on img tag

39 views
Skip to first unread message

micky

unread,
May 18, 2012, 5:34:48 AM5/18/12
to watij
hi,
i have an image which is defined something like this

<img style="border-width:0px;" src="lib/img/btnMyStore.png"
class="store-result-btn store-result-btn-154" alt="">

I am using the following code to click on the image,but it is not
working

Tag img=spec.find("img").with("className", "store-result-btn store-
result-btn-284");
img.call.onClick();

Jake Dempsey

unread,
May 29, 2012, 9:59:55 AM5/29/12
to watij
Sorry for the late reply on these, I had not noticed there were
messages needing approval.

I think you are looking for:

Tag img=spec.find("img").with("class", "store-result-btn store-result-
btn-284");
img.call.onClick();


Jake Dempsey
Reply all
Reply to author
Forward
0 new messages