Discussion:
[selenium-users] Running Tests in Parallel on Safari Browser
Nagarjuna Reddy K
2018-10-04 12:53:09 UTC
Permalink
Can you share code or give me some ideas for launching multiple safari
instances in MAC .I have tried nut ,not working
Thanks Jason for the developer confirmation and insight to the differences.
Thanks Alex for pointing out the Safari Windows dropped support. I guess
that may be good (and bad) in forcing users/developers to go with Mac going
forward for Safari Selenium testing.
You should be able to run in parallel on OSX, but not on Windows. When
we launch Safari from the command line on a Mac we get a new Safari process
that can be controlled independently of any others. On Windows, launching
Safari from the command line multiple times just results in opening
additional windows for the existing process.
-- Jason
I wonder whether this would be treated as a bug in the driver/extension
or a bug in Safari browser itself.
From my point of view, though I'm not involved in the development of the
driver extension, I assume the SafariDriver extension is generally agnostic
across platforms, w/ no OS specific code handling, which I assume is same
for Firefox and Chrome, because they are all (currently at least) in
effect, browser extensions which run on any/most OS platforms.
And the SafariDriver client binding is just a client interface that
shouldn't matter for OS.
Therefore, one should deduce this to be an Apple issue with their Safari
browser implementation between Windows and Mac. Apparently, they give
better functionality and focus to the Mac. I've found in testing at my
organization that there's a Windows Safari (4 or 5, I forget) bug on how it
treats data from HTML5 file upload whereas no same issue on Mac Safari.
Knowing how Apple is with Selenium, one can just treat this as a
limitation until Apple ever fixes it.
But anyone feel free to file a Selenium issue to track this and for the
developers to look into it regardless.
Thank god is only Safari! :)
On a serious note: you should really file a bug IF this is truly an
issue (as it seems to be based on two independent verifications)
Yes David, You are absolutely right. I also performed the same test on
Windows and MAC. The same piece of code for parallel execution works fine
of MAC but does not work Windows.
I even tried out using Selenium Grid by creating two different nodes
for Safari connected to the same hub, even then it does not allow parallel
execution.
--
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/bdc64355-7fa0-4805-a668-32acf6e3d5f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Vikram
2018-10-11 08:43:26 UTC
Permalink
Hi,

I won't recommend launching multiple safari browser on same machine to run
in parallel. As real world scenario user won't and can't do this. With
automation we like to match real world user scenarios

Instead you can go with docker safari container.

Refer to
https://www.addteq.com/blog/2016/09/setting-up-a-selenium-grid-with-docker-containers-for-multi-browser-coverage

Regards,
Vikram
Post by Nagarjuna Reddy K
Can you share code or give me some ideas for launching multiple safari
instances in MAC .I have tried nut ,not working
Thanks Jason for the developer confirmation and insight to the differences.
Thanks Alex for pointing out the Safari Windows dropped support. I guess
that may be good (and bad) in forcing users/developers to go with Mac going
forward for Safari Selenium testing.
You should be able to run in parallel on OSX, but not on Windows. When
we launch Safari from the command line on a Mac we get a new Safari process
that can be controlled independently of any others. On Windows, launching
Safari from the command line multiple times just results in opening
additional windows for the existing process.
-- Jason
I wonder whether this would be treated as a bug in the driver/extension
or a bug in Safari browser itself.
From my point of view, though I'm not involved in the development of
the driver extension, I assume the SafariDriver extension is generally
agnostic across platforms, w/ no OS specific code handling, which I assume
is same for Firefox and Chrome, because they are all (currently at least)
in effect, browser extensions which run on any/most OS platforms.
And the SafariDriver client binding is just a client interface that
shouldn't matter for OS.
Therefore, one should deduce this to be an Apple issue with their
Safari browser implementation between Windows and Mac. Apparently, they
give better functionality and focus to the Mac. I've found in testing at my
organization that there's a Windows Safari (4 or 5, I forget) bug on how it
treats data from HTML5 file upload whereas no same issue on Mac Safari.
Knowing how Apple is with Selenium, one can just treat this as a
limitation until Apple ever fixes it.
But anyone feel free to file a Selenium issue to track this and for the
developers to look into it regardless.
Thank god is only Safari! :)
On a serious note: you should really file a bug IF this is truly an
issue (as it seems to be based on two independent verifications)
Yes David, You are absolutely right. I also performed the same test
on Windows and MAC. The same piece of code for parallel execution works
fine of MAC but does not work Windows.
I even tried out using Selenium Grid by creating two different nodes
for Safari connected to the same hub, even then it does not allow parallel
execution.
--
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/f41b363e-13df-4826-8ca5-4a1b252a0433%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nagarjuna Reddy K
2018-10-11 10:10:20 UTC
Permalink
Thaks Vikram for reponse to my post.Is it possible to launch multiple
safari browsers in single machine for doing parallel testing ?

Thanks,
Nagarjuna
[image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
<https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3DiYO9H0kyOuv%252FTjCQtF02UUlNLOC8CPDSK6IL02UZFIU%253D%26token%3DeBsENeRyiTYIV0vqfrEguNVpIHSBjcUiOFhllczaz5evOSr8%252BTXAvomq2qjRgBfvI6rZEDnpULYugS9sN6OoWgadlou2CIDorBQIrd1gToiVEJO3KDRHChFUFUFMtZv2AtTnXXc6NISoJTgy%252F8M9pg%253D%253D&tc_serial=44048936896&tc_rand=1949413998&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
| More info
<http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=44048936896&tc_rand=1949413998&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
Hi,
I won't recommend launching multiple safari browser on same machine to run
in parallel. As real world scenario user won't and can't do this. With
automation we like to match real world user scenarios
Instead you can go with docker safari container.
Refer to
https://www.addteq.com/blog/2016/09/setting-up-a-selenium-grid-with-docker-containers-for-multi-browser-coverage
Regards,
Vikram
Post by Nagarjuna Reddy K
Can you share code or give me some ideas for launching multiple safari
instances in MAC .I have tried nut ,not working
Thanks Jason for the developer confirmation and insight to the differences.
Thanks Alex for pointing out the Safari Windows dropped support. I guess
that may be good (and bad) in forcing users/developers to go with Mac going
forward for Safari Selenium testing.
You should be able to run in parallel on OSX, but not on Windows. When
we launch Safari from the command line on a Mac we get a new Safari process
that can be controlled independently of any others. On Windows, launching
Safari from the command line multiple times just results in opening
additional windows for the existing process.
-- Jason
I wonder whether this would be treated as a bug in the
driver/extension or a bug in Safari browser itself.
From my point of view, though I'm not involved in the development of
the driver extension, I assume the SafariDriver extension is generally
agnostic across platforms, w/ no OS specific code handling, which I assume
is same for Firefox and Chrome, because they are all (currently at least)
in effect, browser extensions which run on any/most OS platforms.
And the SafariDriver client binding is just a client interface that
shouldn't matter for OS.
Therefore, one should deduce this to be an Apple issue with their
Safari browser implementation between Windows and Mac. Apparently, they
give better functionality and focus to the Mac. I've found in testing at my
organization that there's a Windows Safari (4 or 5, I forget) bug on how it
treats data from HTML5 file upload whereas no same issue on Mac Safari.
Knowing how Apple is with Selenium, one can just treat this as a
limitation until Apple ever fixes it.
But anyone feel free to file a Selenium issue to track this and for
the developers to look into it regardless.
Thank god is only Safari! :)
On a serious note: you should really file a bug IF this is truly an
issue (as it seems to be based on two independent verifications)
Yes David, You are absolutely right. I also performed the same test
on Windows and MAC. The same piece of code for parallel execution works
fine of MAC but does not work Windows.
I even tried out using Selenium Grid by creating two different nodes
for Safari connected to the same hub, even then it does not allow parallel
execution.
--
You received this message because you are subscribed to a topic in the
Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/selenium-users/ZRMd9dptNfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/f41b363e-13df-4826-8ca5-4a1b252a0433%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/f41b363e-13df-4826-8ca5-4a1b252a0433%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/CALSpBtVRxxh_ika%3DD_UrvweD3%2BTWxnh%3DerEd0Xj%2BhWOFEYHjzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
⇜Krishnan Mahadevan⇝
2018-10-11 10:15:30 UTC
Permalink
I don't think you can run safari tests on docker yet since the docker
images aren't available yet ( to the best of my knowledge )

I havent explored the built-in Safari driver binary provided by Apple to
support safari automation using selenium.

So if the driver doesn't support concurrency, then the only way to run test
multiple concurrent safari based selenium tests is to run them on multiple
OSX machines or VMs ( I believe that OSX has a server OS flavour on which
you can host multiple VMs ).
Post by Nagarjuna Reddy K
Thaks Vikram for reponse to my post.Is it possible to launch multiple
safari browsers in single machine for doing parallel testing ?
Thanks,
Nagarjuna
[image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
<https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Fkey%3DiYO9H0kyOuv%252FTjCQtF02UUlNLOC8CPDSK6IL02UZFIU%253D%26token%3DeBsENeRyiTYIV0vqfrEguNVpIHSBjcUiOFhllczaz5evOSr8%252BTXAvomq2qjRgBfvI6rZEDnpULYugS9sN6OoWgadlou2CIDorBQIrd1gToiVEJO3KDRHChFUFUFMtZv2AtTnXXc6NISoJTgy%252F8M9pg%253D%253D&tc_serial=44048936896&tc_rand=1949413998&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
| More info
<http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=44048936896&tc_rand=1949413998&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
Hi,
I won't recommend launching multiple safari browser on same machine to
run in parallel. As real world scenario user won't and can't do this. With
automation we like to match real world user scenarios
Instead you can go with docker safari container.
Refer to
https://www.addteq.com/blog/2016/09/setting-up-a-selenium-grid-with-docker-containers-for-multi-browser-coverage
Regards,
Vikram
Post by Nagarjuna Reddy K
Can you share code or give me some ideas for launching multiple safari
instances in MAC .I have tried nut ,not working
Thanks Jason for the developer confirmation and insight to the differences.
Thanks Alex for pointing out the Safari Windows dropped support. I
guess that may be good (and bad) in forcing users/developers to go with Mac
going forward for Safari Selenium testing.
You should be able to run in parallel on OSX, but not on Windows.
When we launch Safari from the command line on a Mac we get a new Safari
process that can be controlled independently of any others. On Windows,
launching Safari from the command line multiple times just results in
opening additional windows for the existing process.
-- Jason
I wonder whether this would be treated as a bug in the
driver/extension or a bug in Safari browser itself.
From my point of view, though I'm not involved in the development of
the driver extension, I assume the SafariDriver extension is generally
agnostic across platforms, w/ no OS specific code handling, which I assume
is same for Firefox and Chrome, because they are all (currently at least)
in effect, browser extensions which run on any/most OS platforms.
And the SafariDriver client binding is just a client interface that
shouldn't matter for OS.
Therefore, one should deduce this to be an Apple issue with their
Safari browser implementation between Windows and Mac. Apparently, they
give better functionality and focus to the Mac. I've found in testing at my
organization that there's a Windows Safari (4 or 5, I forget) bug on how it
treats data from HTML5 file upload whereas no same issue on Mac Safari.
Knowing how Apple is with Selenium, one can just treat this as a
limitation until Apple ever fixes it.
But anyone feel free to file a Selenium issue to track this and for
the developers to look into it regardless.
Thank god is only Safari! :)
On a serious note: you should really file a bug IF this is truly an
issue (as it seems to be based on two independent verifications)
Yes David, You are absolutely right. I also performed the same test
on Windows and MAC. The same piece of code for parallel execution works
fine of MAC but does not work Windows.
I even tried out using Selenium Grid by creating two different
nodes for Safari connected to the same hub, even then it does not allow
parallel execution.
--
You received this message because you are subscribed to a topic in the
Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/selenium-users/ZRMd9dptNfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/f41b363e-13df-4826-8ca5-4a1b252a0433%40googlegroups.com
<https://groups.google.com/d/msgid/selenium-users/f41b363e-13df-4826-8ca5-4a1b252a0433%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
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CALSpBtVRxxh_ika%3DD_UrvweD3%2BTWxnh%3DerEd0Xj%2BhWOFEYHjzw%40mail.gmail.com
<https://groups.google.com/d/msgid/selenium-users/CALSpBtVRxxh_ika%3DD_UrvweD3%2BTWxnh%3DerEd0Xj%2BhWOFEYHjzw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening
or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/

My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
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/CANikZL%3DBiprKrBeKR_bt17Vs9yAAh3FhhRu80fP6v21hKPPD%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...