Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
Latha.p
Active particpant
Active particpant
Posts : 11
Join date : 2013-01-06

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Asserting text in the window which is opened in the new tab using SeleniumIDE

Fri Feb 01, 2013 1:52 pm
Hi,





My
requirement is as follows


1.
I click on image link.


2.
It opens the page in the new tab.


3.
I want to assert text present in that page.


4.
And i want to come back to the page which has
that image link.






Can any one help me please.


Is window focus works for this or is there any alternative to achieve
this? How can achieve my requirement?


I tried that but it is asking the window name, or id linke that......


How can we find the window name or id?


Thanks
in advance.
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Fri Feb 01, 2013 3:26 pm
u can find window title of window using firebug...in header section of html code title will be available...
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Fri Feb 01, 2013 3:35 pm
u can use selectWindow command...if u want 2 come back to ur first window
avatar
Latha.p
Active particpant
Active particpant
Posts : 11
Join date : 2013-01-06

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Fri Feb 01, 2013 3:56 pm
Thank u adityac for ur reply.

I tried that but iam getting error as "Could not find window with title SriRamaTech - YouTube"

Following is the HTML code







New Test





































New Test
open http://www.sriramatech.com/
click css=a[title="SriRamaTech@YouTube"] > img
selectWindow SriRamaTech - YouTube
assertText css=span.qualified-channel-title SriRamaTech
selectWindow null
assertText css=span.header-headertitle Welcome to ORKL SriRamaTech Enterprises!

avatar
Latha.p
Active particpant
Active particpant
Posts : 11
Join date : 2013-01-06

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Fri Feb 01, 2013 4:00 pm
I did the sample choosing some website.
can u plz tell me the mistake in that?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Fri Feb 01, 2013 4:07 pm
new window is opening for u??? after clicking on css=a[title="SriRamaTech@YouTube"] > img?
avatar
Latha.p
Active particpant
Active particpant
Posts : 11
Join date : 2013-01-06

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Fri Feb 01, 2013 4:11 pm
No it opened in new tab.
Is there any cmd to assert text in page which is opened in new tab?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Fri Feb 01, 2013 6:53 pm
http://stackoverflow.com/questions/11358316/selenium-web-driver-open-new-tab-instead-of-a-new-window

check this link... opening in new window is possble bt no idea of tab Sad
avatar
Latha.p
Active particpant
Active particpant
Posts : 11
Join date : 2013-01-06

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Sat Feb 02, 2013 10:54 am
k adityac no problem. Thank u very much for ur reply.
Aditya can u send me one practical example on handling multiple windows?

I saw one blog that code which we have written to handle multiple windows did not playback in IDE but the same thing works in webdriver.

Is it possible to handle in IDE?

And can u tell me how can we find windowid, windowname.... which is used in selectWindow command?
avatar
adityac
Professional
Professional
Posts : 101
Join date : 2013-01-17

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Tue Feb 05, 2013 1:42 pm
u cn try same scenario by disabling tab in FF....

using firebug u cn find window id... it will be in header section of html code
Sponsored content

Asserting text in the window which is opened in the new tab using SeleniumIDE Empty Re: Asserting text in the window which is opened in the new tab using SeleniumIDE

Back to top
Permissions in this forum:
You cannot reply to topics in this forum