Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
random undefined method error
Yt Hu
8/28/2008 10:46:00 PM
Hi,
I have the following nested loop, it gives undefine method "radio"
sometimes.
its wierd because the error occurs randomly.sometimes it runs fine,
sometimes at start of execution and sometimes half way through.
I m running watir on ruby 186.26
thanks for any advices
SeperatedBy.each do|SperatedByVal|
$ie.select_list(:id,"cboSetValue").select(SperatedByVal)
Units.each do |unit|
$ie.select_list(:id,"cboUnits").select(unit)
$ie.button(:id,"imgBtnGo").click
$ie.wait
#export csv file
$ie.link(:id,"lnkExportData").click
ieEX.radio(:id,"chkExport").set
end
end
--
Posted via
http://www.ruby-...
.
1 Answer
John Pritchard-williams
8/29/2008 3:53:00 PM
0
Can you post the whole call stack - I don't why this would be occurring
- but maybe the call stack will provide a clue about where the
'undefined method' error is coming from ?
Yt Hu wrote:
> Hi,
> I have the following nested loop, it gives undefine method "radio"
> sometimes.
> its wierd because the error occurs randomly.sometimes it runs fine,
> sometimes at start of execution and sometimes half way through.
> I m running watir on ruby 186.26
> thanks for any advices
>
>
> SeperatedBy.each do|SperatedByVal|
> $ie.select_list(:id,"cboSetValue").select(SperatedByVal)
>
> Units.each do |unit|
> $ie.select_list(:id,"cboUnits").select(unit)
>
> $ie.button(:id,"imgBtnGo").click
> $ie.wait
>
> #export csv file
> $ie.link(:id,"lnkExportData").click
> ieEX.radio(:id,"chkExport").set
> end
> end
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
random undefined method error
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password