[Wtr-general] Storing shorthand variables in a module

Alan Ark arkie at compli.com
Thu Dec 14 13:23:47 EST 2006


 

I’ve been trying to store a list of nodes as variables, accessible from a module, but don’t think it is suitable:

 

tt_choose_patient              = ie.frame("left").link(:index, 3)

tt_diabetes                    = ie.frame("left").link(:index, 6)

 

(etc)

 

 

[Arkie] 

Without having some source to look at, I would have to ask if there is some type of immutable attribute available that you can reference instead?

Id’s or name or even href might be good choices.  Using a regex might be useful as well.

 

The reason being that there are a load of these nodes and accessing them through the index is brittle. What I ‘d like is for scripts to be able to access the node without having to specify right down to the level of the node- that way if the nodes changed, I can do one update and all the test scripts remain ok.

 

I want to be able to include the module and do something like

tt_choose_patient.click

 

Any suggestions?

 


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.18/586 - Release Date: 12/13/2006



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.18/586 - Release Date: 12/13/2006
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061214/51c42df5/attachment-0001.html 


More information about the Wtr-general mailing list