So if you have the control reference
already then what you would do is: control_text = ie_browser.[control
reference].text; if (control_text.index([text you are
looking for]) != nil) The text is in the control. else The text is not in the control end Should be good with that. Sergio From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paatsch, Bernd Could you give me an example? I am fairly
new to web testing. Thanks. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Pinon And actually an even easier way would be
to get the Text property of the control and then do a check that way as well.
There are several options that you have available. Sergio From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paatsch, Bernd I
am fairly new to watir and think it is a great tool. I
have following code that fails to execute. if
ie.contains_text(:id, "current" :text, "Groups")
How
is it possible to specify to look for a specific text in a specific tag?
Thanks,
|
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general