|
Try /icon_export.gif/ instead of
/icon_export_gif/
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tuyet Cong-Ton-Nu Sent: Friday, July 08, 2005 9:36 PM To: '[email protected]' Subject: [Wtr-general] Choosing right attribute? I can't seem to
be able to find the right attribute to click on. I want to click on the
Export icon (image). This should work, but I got an
error Another pair of
eyes to look at this would really be appreciated: irb(main):030:0>
ie.frame("main").frame("header").image(:src,
/icon_export_gif/).click Watir::Exception::UnknownObjectException:
Unable to locate object, using src and (?-mix:icon_export_gif)
from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1979:in
`object_exist_check'
from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:2094:in
`click'
from (irb):30 Here is the View
Source Code: <body
class="mvaHeaderBody"
>
<table width="100%" height="100%" cellpadding=0 cellspacing=0
border=0>
<tr>
<td align="left"
width="50%">
<table height="100%" cellpadding=0 cellspacing=0
border=0>
<tr><td align="left"><b><nobr> Current
View: </nobr></b></td>
<td align="left"><b><nobr><input id="currentReport"
name="currentReport" value="" readonly
size="48"/></nobr></b></td>
<td
align="left"><b><nobr><input id="selectReport"
name="selectReport" type="button" value="..."
/></nobr></b></td>
</tr>
</table>
</td>
<td width="50%"> </td>
<td
align="right">
<table height="100%" cellpadding="0" cellspacing="0"
border="0">
<tr>
<td align="right">
<img src="" border="0"
alt="Export" />
</td>
<td valign="center"><a class="nav" href=""
> Export </a></td>
|
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
