Hi,
If we take a look at the 'googlesearch' example. we have two actions that
are sent to different objects
ie.text_field(:name, "q").set("pickaxe") # q is the name of the
search field
ie.button(:name, "btnG").click # "btnG" is the name of the Search button
I think what we'd have to map is this:
text_field(:name, "q")
so
SearchField="text_field(:name, 'q')"
Now.I was thinking of using the Ruby HashMap, so we could have
googlewin = {
"SearchField" => "text_field(:name, 'q')"
"SearchButon" => "button(:name, 'btnG')"
... etc
}
We will need to keep all action methods in a collection as well (e.g.
click, set)
So the test table will look something like this
test, win object Action Arg #header
T, googlewin, SearchField, set, "PickAxe"
T, googlewin, SearchButon, click
We could read in and process the above input, so the script will look like
GUIAction = "ie." + object + "." + Action "." + Args
Questions
1. What do you think?
2. Should I put every GUIobject within 1 class with every window being a
different method or each window being a separate class?
3. I am not so sure on the Ruby syntax to get the value from a key? Is it
something like ' googlewin.key("SearchField")' ?
Aidy
---------------------------------------------------------------------------------------------------------------
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure.
If you are not the intended recipient, please telephone or email the sender and
delete this message and any attachment from your system.
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person.
---------------------------------------------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general