Hi Maloy,

Try this for accessing the "Go" button..
ie.button(:src, "http://im.rediff.com/uim/news/go-btn.gif";).click

Regards
Devesh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maloy kanti
debnath
Sent: Wednesday, January 10, 2007 12:53 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Two queries in Watir

Hello people,

I have got two queries in Watir.  If they get cleared through this
forum, I would be thankful.  The queries are:

1.  How to access a control, whose '.html' is displayed as ' Active
Element: [INPUT], Index: [956]  <INPUT title="Sign in" type=image
height=22 hspace=0 width=37
src="http://im.rediff.com/uim/news/go-btn.gif"; border=0>'.   I have
tried accessing it through commands like 'ie.image', 'ie.link',
'ie.button', 'ie.label' etc. but each time Watir would say that it
cannot recognize the object.  Is there any other word apart from image,
link, button etc., which can be used to access this control?
Just for your information, I would like to tell you people that the
control referred above is the "Go" button (the button that we click
after entering the 'username' and 'password' of our rediffmail id)
present in www.rediff.com (please open "www.rediff.com" and look for an
'Orange' color button named "Go").

2) Where can we see the log (output) of a script?  Will the command
'ie.log()' write the given text to the log?  If so, where can it be
viewed?

Thanks in advance,
Maloy.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6068&messageID=16987#16987
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to