random undefined method error

Y

Yt Hu

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
 
J

John Pritchard-williams

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top