How to assert text of a span class?

37 views
Skip to first unread message

Zk W

unread,
Dec 16, 2014, 4:29:29 PM12/16/14
to dal...@googlegroups.com

Hi All


1)

We have a block structure like this below and we like to check for Welcome (abc_site) text. But we cant seem to capture it. Dalekjs keeps saying Found Object object

<div id="login" style="display: block;">
            <span class="simple-resource-header" id="welcomeText">Welcome <i>(abc_site)</i></span>
            <button type="submit" id="submitButton" onclick="out();">Out</button>
</div>

How do we assert this properly ?


2) we have a structure like this on our page:

<div id="a">

   <div class="message a">HTTP Error:404" </div>

</div>

How do we assert this properly to capture the text "HTTP Error:404"


Thanks

Reply all
Reply to author
Forward
0 new messages