Hello, I 'm working with a automatic test, but I have a problem, I'm
working with Internet Explorer 9. Sometimes mi code works and anytimes it
doesn't work. I run it in a loop and it works fine 20 times and after it
doesn't work but another times it only works 5 times. I'm doing click on a
component and this component is a frame structure. I get the nexts error
message:

C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/elements/frame.rb:9:in
`locate': unable to locate frame/iframe using {:name=>"topFrame"}
(Watir::Exception::UnknownFrameException)
 from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/elements/element.rb:487:in
`assert_exists'
 from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/elements/frame.rb:30:in
`assert_exists'
 from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/elements/element.rb:508:in
`locate'
 from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/elements/element.rb:487:in
`assert_exists'
 from
C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/elements/element.rb:118:in
`click'


My Watir code is:


1.upto(1000) do |x|

@browser = Watir::Browser.new :ie
@browser.goto(url)
@browser.frame(:name=> 'topFrame').td(:id => "main/500_Mconf").click
@browser.close

end

 and my suorce code of mi web is:


<head>
<frameset framespacing="0" border="0" frameborder="NO" background="#666666"
rows="1,35,*">
<frame scrolling="NO" src="/cgi-bin/app/acmpage.py" noresize="" background="
#666666" name="appletsFrame">
<frame scrolling="NO" src="/cgi-bin/app/menuGenerator.py?dir=main&style=1"
noresize="" background="#666666" name="topFrame">
<html>
<head>
<body marginwidth="0" marginheight="0" bgcolor="#4F4F4F" topmargin="0"
leftmargin="0">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<table width="1020" height="35" cellspacing="0" cellpadding="0">
<tbody>
<tr valign="center" height="35" align="center">
<td width="137" background="/imag/custom/videosafe/logo.gif"> </td>
<td width="70" background="/imag/part_2.jpg"></td>
<td id="main/100_Mlivevideo" class="menu_ppal_selected" width="120" height="
35" background="/imag/btn_ppal_roll.jpg" align="center" onclick="
if(is_button_enabled('main/100_Mlivevideo')){store_cookie('main/100_Mlivevideo');menu_on_click('main/100_Mlivevideo','main.spy','ppal');}
" onmouseout="button_rollover('main/100_Mlivevideo',false,'menu_ppal')"
onmouseover="button_rollover('main/100_Mlivevideo',true,'menu_ppal')"
colspan="1">LIVE VIDEO</td>
<td id="main/200_Mrecorded" class="menu_ppal" width="120" height="35"
background="/imag/btn_ppal_nor.jpg" align="center" onclick="
if(is_button_enabled('main/200_Mrecorded')){store_cookie('main/200_Mrecorded');menu_on_click('main/200_Mrecorded','main.spy','ppal');}
" onmouseout="button_rollover('main/200_Mrecorded',false,'menu_ppal')"
onmouseover="button_rollover('main/200_Mrecorded',true,'menu_ppal')" colspan
="1">RECORDED VIDEO</td>
<td id="main/300_Mstate" class="menu_ppal" width="120" height="35"
background="/imag/btn_ppal_nor.jpg" align="center" onclick="
if(is_button_enabled('main/300_Mstate')){store_cookie('main/300_Mstate');menu_on_click('main/300_Mstate','main.spy','ppal');}
" onmouseout="button_rollover('main/300_Mstate',false,'menu_ppal')"
onmouseover="button_rollover('main/300_Mstate',true,'menu_ppal')" colspan="1
">STATUS</td>
<td id="main/500_Mconf" class="menu_ppal" width="120" height="35" background
="/imag/btn_ppal_nor.jpg" align="center" onclick="
if(is_button_enabled('main/500_Mconf')){store_cookie('main/500_Mconf');menu_on_click('main/500_Mconf','main.spy','ppal');}
" onmouseout="button_rollover('main/500_Mconf',false,'menu_ppal')"
onmouseover="button_rollover('main/500_Mconf',true,'menu_ppal')" colspan="1"
 style="background-image: url("/imag/btn_ppal_nor.jpg");">CONFIGURATION</td>
<td id="main/600_Mlogout" class="menu_ppal" width="120" height="35"
background="/imag/btn_ppal_nor.jpg" align="center" onclick="
if(is_button_enabled('main/600_Mlogout')){store_cookie('main/600_Mlogout');menu_on_click('main/600_Mlogout','main.py','ppal');}
" onmouseout="button_rollover('main/600_Mlogout',false,'menu_ppal')"
onmouseover="button_rollover('main/600_Mlogout',true,'menu_ppal')" colspan="
1">LOGOUT</td>
<td width="212" background="/imag/part_2.jpg"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
</tbody>
</table>
<object id="msxml" width="1" height="1" classid="
CLSID:2933BF90-7B36-11d2-B20E-00C04F983E60"></object>
</body>
</html>
</frame>
<frame src="/cgi-bin/main/main//main.spy" background="#666666" name="
mainFrame">
</frameset>
<noframes> <body backgroundcolor="#666666" text="#000000"></body> </noframes
>
</html>



Does anyone know the soulution?
Best Regards

Luis Espla

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to