Bret
On 2/3/06, Paul Carvalho <[EMAIL PROTECTED]> wrote:
Hi there, I have encountered an interesting roadblock that I need somehelp with.
In the Dot-Net application that I am testing, there is a Context Treein the Left frame that when you click on something, it changes thecontext/display in the MainWindow frame. ( i.e. similar to the"Interacting with a _javascript_tree view" example in the FAQ.)
Unfortunately, the _javascript_ tree that our app uses is not quite assimple as the Joust example.
When I use "ie.frame("ContextTree").image(:index, 3).flash", the[-]/[+] icon flashes. I can "click" this to expand/collapse thecurrently selected item. (that's good)
However, this command/control doesn't actually *select* the item. (that's bad)
I scanned through the HTML (and used SpySmith) to discover that thetree item names are stored within "div" tags. Okay. So then Idiscovered that I can highlight any item in the tree that I want usingsomething like: " ie.frame("ContextTree").div(:id, "ContextList1Tree_1_2").flash"
(where the "_1_2" is kind of like an array of the items listed in thetree.) (that's good)
When I try to "click" this item, nothing happens. (that's bad)
Back to scanning the HTML. I used "show_all_objects" to give me alist of the frame elements. Then I noticed the *hidden* input fields.
I think that I need to pass values to one of these hidden inputfields, but I haven't been successful using ".text_field(..).set(..)"
When I try this, I keep getting an error similar to the following:"Watir::Exception::UnknownObjectException: Unable to locate object.."
I've searched through the mail archives for other postings on Hiddenfields, but I haven't found any solutions posted that would apply tothe page/frame that I am trying to interact with. There are *no*visible fields to input on this Context Tree. It is simply lookingfor an onkeydown / onkeyup / onclick event of some sort.
Has anyone had any success trying to pass values to hidden inputfields that are looking for these kinds of values?
I'll keep exploring, but I thought I would post my question in themeantime to see if anyone here has any advice that might help.
Cheers. Paul.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
