How to catch the elements of a new tab

11 views
Skip to first unread message

Jose Martins

unread,
Sep 1, 2011, 6:15:40 AM9/1/11
to telluri...@googlegroups.com
Hi!

I'm testing a functionality that consists in clicking in a link which will open a new page in a new tab. I need to verify the presence of some elements in this new tab, but it seems impossible, either to execute the action (clicking on link doesn't open a new tab), and to "catch" the elements of the new tab.
The html is defined below.

<div class="prospectHeader">
        <a href="http://www.sapo.pt" target="_blank" style="text-decoration: none;">
            <div class="prospectHeaderBg" style="background: url('/img/homepage/prospect_bg.jpg')">
                <span>
                    <p>bla bla <strong>exchange</strong> where
                    <p> bla bla <strong>bla</strong> bla
                    <p> bla bla bla. </p>

                 </span>
                 <div class="prospectHeaderBgPanel"></div>
            </div>
        </a>
</div>

Could you guys give me some help?
Thanks in advance

JM

Jian Fang

unread,
Sep 1, 2011, 9:31:34 PM9/1/11
to telluri...@googlegroups.com
Since Tellurium uses Selenium APIs in the Selenium wrapper mode, you
could search for the solutions for Selenium and do the same in
Tellurium. Here are some threads:

http://stackoverflow.com/questions/731817/how-to-i-change-focus-to-a-new-popup-tab-in-selenium

http://groups.google.com/group/selenium-users/browse_thread/thread/bbd0d4d7a98b33aa

> --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/tellurium-users/-/9txN_BVjIX8J.
> To post to this group, send email to telluri...@googlegroups.com.
> To unsubscribe from this group, send email to
> tellurium-use...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>

Reply all
Reply to author
Forward
0 new messages