OK, thanks, Bret for the suggestion. Per your request, here are some additional lines of code that preceded the “while” statement.

There is the “attach” statement which may be causing the problem since you had opened up a bug on that a couple of days ago?

 

 

ie.frame(:name, "portfolioTreeContent").frame(:name, treeframe).link(:text, /MMIM/).click

            sleep 3

            ie = Watir::IE.attach(:url, "https://test.com/araneae/app")              #Reconnect back to main frame

            ie.frame("main").frame("sidebar").wait("analysisSidebarTabContent")

            sleep 3

            while !ie.frame("main").frame("sidebar").frame("analysisSidebarTabContent").image(:src, /icon_report_positions.gif/).exists?

                        sleep 0.1

            end

            ie.frame("main").frame("sidebar").frame("analysisSidebarTabContent").image(:src, /icon_report_positions.gif/).click

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to