Discussion:
[selenium-users] Can we open a link in new tab (not a new window) and give commands for carrying out tasks
Archit Goel
2016-05-12 20:02:39 UTC
Permalink
http://toolsqa.com/automation-practice-switch-windows/
for above website if i manually click on new browser tab , then it will
open it in new tab.
But when i do the same by automation , it opens it in new window.
Why does selenium does not allow it to open in new tab ?
Also is it possible to switch between tabs . if yes can we forcefully open
any link in a new tab.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5ccfbb1d-72bf-4c0f-b093-3d8f74e469fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
⇜Krishnan Mahadevan⇝
2016-05-13 03:13:09 UTC
Permalink
To the best of my knowledge there is NO difference between the browser
opening a new tab (or) a new window.

Its just a different user experience, because multiple windows would
require a user to keep switching between windows [ Remember using ALT + TAB
in windows to toggle between different windows ? ], but a tabbed approach
wouldnt need a user to do that. All tabs are available on the same window
and a user can interact with anything.

Now with that understanding, can you please help us understand why you are
specific that a window be opened in a different tab, rather than a
different window ?

How does that affect your web application's functionality ?


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
Post by Archit Goel
http://toolsqa.com/automation-practice-switch-windows/
for above website if i manually click on new browser tab , then it will
open it in new tab.
But when i do the same by automation , it opens it in new window.
Why does selenium does not allow it to open in new tab ?
Also is it possible to switch between tabs . if yes can we forcefully open
any link in a new tab.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/5ccfbb1d-72bf-4c0f-b093-3d8f74e469fe%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/5ccfbb1d-72bf-4c0f-b093-3d8f74e469fe%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CANikZLkUMGW1e%2BEEDbQBtF_EJkFSFU1AtV96iX%3DrWLUWPi%3DqRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Archit Goel
2016-05-13 06:04:22 UTC
Permalink
Its not affecting my web application's functionality. I just wanted to know
that why it opens in new window instead of a new tab.
And is it possible to force selenium to open it in new tab.(just like we do
Right click - open in new tab)
Post by ⇜Krishnan Mahadevan⇝
To the best of my knowledge there is NO difference between the browser
opening a new tab (or) a new window.
Its just a different user experience, because multiple windows would
require a user to keep switching between windows [ Remember using ALT + TAB
in windows to toggle between different windows ? ], but a tabbed approach
wouldnt need a user to do that. All tabs are available on the same window
and a user can interact with anything.
Now with that understanding, can you please help us understand why you are
specific that a window be opened in a different tab, rather than a
different window ?
How does that affect your web application's functionality ?
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
Post by Archit Goel
http://toolsqa.com/automation-practice-switch-windows/
for above website if i manually click on new browser tab , then it will
open it in new tab.
But when i do the same by automation , it opens it in new window.
Why does selenium does not allow it to open in new tab ?
Also is it possible to switch between tabs . if yes can we forcefully
open any link in a new tab.
--
You received this message because you are subscribed to the Google Groups
"Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/5ccfbb1d-72bf-4c0f-b093-3d8f74e469fe%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/5ccfbb1d-72bf-4c0f-b093-3d8f74e469fe%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4be6c109-4a3a-4fcb-9b53-960f80840471%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Archit Goel
2016-05-13 06:39:25 UTC
Permalink
Also as per my knowledge switching between tabs and windows is not similar
for selenium.
The reason because when i open 2 windows then driver.getWindowHandles()
returns two windows
But when i open two tabs by using sendKeys(Keys.CONTROL +"\t") at that
time driver.getWindowHandles() returns one window
Post by Archit Goel
Its not affecting my web application's functionality. I just wanted to
know that why it opens in new window instead of a new tab.
And is it possible to force selenium to open it in new tab.(just like we
do Right click - open in new tab)
Post by ⇜Krishnan Mahadevan⇝
To the best of my knowledge there is NO difference between the browser
opening a new tab (or) a new window.
Its just a different user experience, because multiple windows would
require a user to keep switching between windows [ Remember using ALT + TAB
in windows to toggle between different windows ? ], but a tabbed approach
wouldnt need a user to do that. All tabs are available on the same window
and a user can interact with anything.
Now with that understanding, can you please help us understand why you
are specific that a window be opened in a different tab, rather than a
different window ?
How does that affect your web application's functionality ?
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive,
fattening or in love with someone else!"
Post by Archit Goel
http://toolsqa.com/automation-practice-switch-windows/
for above website if i manually click on new browser tab , then it will
open it in new tab.
But when i do the same by automation , it opens it in new window.
Why does selenium does not allow it to open in new tab ?
Also is it possible to switch between tabs . if yes can we forcefully
open any link in a new tab.
--
You received this message because you are subscribed to the Google
Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/5ccfbb1d-72bf-4c0f-b093-3d8f74e469fe%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/5ccfbb1d-72bf-4c0f-b093-3d8f74e469fe%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/122f1256-5467-4d9a-a0c2-7b7bf823ecb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...