Hi, all

After try the IE.pagecontainstext, IE.text, and IE.contains_text method, it
always return the text contained.
In fact, I want to only verfy the static text on page, not the object name,
or object/option value that displayed page or selected the certain one item
value for object.

For example, on the page below

<p>

you add the ID successfully</p>

<select name="status" class="listinput">
   <option value="">select...</option>
                                <option value="new"     >new</option>
                                <option value="success"     >you add the ID
successfully</option>
                        </select>


for this example, I just want to check the static text between P tags, not
the list item text.

Of couse there are lots of tags contained the pure text, but I can't know if
there are the existed method for capture such these text?
what is more, i am not sure how many tags should I need filter.


Any suggestion are appreciated.

-Wiston




2008/10/14 juuser <[EMAIL PROTECTED]>

>
> you could also try browser.html and then parse the text out and find
> out by html itself if the text is visible or not...
>  >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to