1) In my script A, I have these commands that call a do_click method:

w = RptFunctions.new

icon = "/icon_customize.gif/"

w.do_click(icon)

 

2) In the do_click method, I have this statement which clicks on an icon (there are 5 possible icons it can click on)

ie.frame("main").frame("body").frame("tabs").image(:src, icon).click

 

The problem is that the above statement always clicks on the first icon eventhough, the /icon_customize.gif/ is the 5th icon

 

However, if I change the do_click method to specify to the “exact” icon, then it works:

ie.frame("main").frame("body").frame("tabs").image(:src, /icon_customize.gif/

 

But, I need to be able to be able to click on any one of the 5 icons, so how do I do this without having to specify the exact icon.

 

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

Reply via email to