On Mon, Sep 13, 2010 at 1:54 PM, Cyril Gonsalves <[email protected]>
wrote:
> The problem i face is that "login" is neither an image nor a button

It is a button:

<input border="0" type="image" onclick="return validation()" src="
http://img1.moneycontrol.com/images/portfolio/new/login.jpg";>

More info:

http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watir

Example (not tested):

browser.button(:src => /login/).click

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to