 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Peter Nicolai Motzfeldt
RE: access to the controls through the captio [ reply ] 2008-12-15 08:43
|
At the moment it is not possible to get all the controls. But what do you want to de with all the controls?
Or do you mean all the controls with the same name, like in a repeater? Becuase in the 0.0.4 version, FunFX will return all objects with the same id it finds in an array. So if you have 4 ComboBoxes with the id "cb". You can then ask for each element like this:
@ie.combo_box("cb")[0].click
@ie.combo_box("cb")[1].click
|
By: Mario Ruiz
RE: access to the controls through the captio [ reply ] 2008-09-11 13:30
|
I mean something like you can do in watir:
browser.links #show all the links on the browser
browser.buttons #show the button names for all the buttons on the browser
browser.checkboxes #show all the checkbox names on the browser
...
I need something similar in FunFX because sometimes the objects are generated during the execution so I don't know the names.
I realized that we can access an object in FunFX using ie.object(name) instead of using ie.button(name) so I was thinking that maybe we can get all the objects through something like ie.objects
|
By: Mario Ruiz
RE: access to the controls through the captio [ reply ] 2008-09-11 12:17
|
Yeah it's working now... I don't know what was happening.
Which controls could I access through the caption?
And another thing (I wrote it on your blog), How can I get all the objects inside a flex object?
Something like:
@ie.objects.each {|myObject|
puts myObject.name
puts myObject.className
}
In this case in myObject I'll have the object but also could be good for me to have only the name and then access to the object:
@ie.object(myObject)
thanks a lot.
|
By: Mario Ruiz
access to the controls through the caption [ reply ] 2008-09-11 12:01
|
I would like to access to a control through the caption instead of the id/name.
For example if I have something like:
<mx:Button id="btn01" label="Update data" click="UpdateIt.show()" />
I would like to do:
@ie.button("Update data").click
Is it possible??
Thanks.
|
|
 |