Selenium Webdriver testing(Safari ) in windows or ubuntu - selenium

I working on the automation script using selenium webdriver, I tried with the browsers chrome and firefox in my windows and linux machine both chrome and firefox works fine, but I tried the same with safari but it is not working in both windows and linux machine, Wanna know is there a possibility to launch safari webdriver for testing in windows and linux machine. Thanks in advance.

Related

Can we install safari and edge webDriver on the docker?

I could install chrome and firefox webDriver on Docker, but I don't know if it is possible to do the same with safari and edge too.
So any one has an idea? if yes how to do?
Docker containerisation is limited to Linux OS containers only. This means no OS X nor Windows. So you can't run Safari nor Edge.
But you can add a vagrant vm browser (running Windows or OS X), and then connect them to your Selenium hub.
There is no installation available for safari on docker. You can read the following issue for more details
https://github.com/aerokube/selenoid/issues/663

Do we need to have the Browser installed on GUI less RedHat Linux m/c when we are running headless tests using XVFB?

Since we are facing problems with running headless Serenity tests using the installed Firefox browser on a Jenkins Server running on RedHat Linux machine, we installed XVFB to run the tests.
Our preferred browser to test is with Chrome, not Firefox. But Chrome is not available for RedHat Linux (Jenkins) Server.
Question, is do we need to have the Chrome browser installed on the Linux machine in order to run headless tests using XVFB ?
Yes, you need to have both the chrome browser and chrome driver to run tests. You can find the chrome driver [here][http://chromedriver.chromium.org/downloads]. If Chrome is not available for Red Hat Edition, you can install open source chromium.

How to run the selenium code on linux using firefox without GUI?

I had redhat Linux server command line but there is no GUI for that and I need to run selenium code on this server with firefox. As I am new to selenium so I am not sure whether it will work or not.
For achieving this I had install Firefox on my Redhat linux machine successfully but not able to trigger that as it is showing no display found.
Is there any other way to achieve this for headless browsing, where virtually a firefox will be opened and selenium code can be executed without GUI. Is it possible to do??
You can use HtmlUnitDriver of selenium to use headless browsing but it will not open firefox and may be not loading all content to it's cache as same as firefox
Refer Below:-
https://code.google.com/p/selenium/wiki/HtmlUnitDriver
Another thing you can use is Phantomjs with selenium Webdriver. This is most using pattern by industries for headless browsing
Refer below:-
http://www.guru99.com/selenium-with-htmlunit-driver-phantomjs.html
Yes you can trigger selenium file using command line
http://www.tutorialspoint.com/testng/testng_executing_tests.htm
Bash file is running fine in windows for testng but it is not working in linux/mac
Now if still your firefox is not opening then it is basically issue of some setting with your OS with firefox
Refer that too :-
https://serverfault.com/questions/279036/open-terminal-via-ssh-run-firefox-display-not-found
May be you have problem with some permission in red hat
Hope it will help you :)

which version of safari driver is compatible with safari version 8.0.7

Which version of safari-driver is compatible with safari version 8.0.7. After upgrading to safari v8.0.7 browser from safari v7.1.8, when I ran my tests, several safari browser instances open up and my scripts fail. It was working fine before with selenium version 2.45.0 and browser version 7.1.8.
Selenium version 2.48.0 able to run Safari 8.0.7.

Selenium 2.0b3 and IE9/Firefox 4

I nabbed Selenium 2.0b3 after seeing the announcement that it now works with Firefox 4 and IE9.
Unfortunately, I experience the same issues prior to 2.0b3 - I can't find elements in IE.
The exact same tests work just fine in IE8, Firefox 3 and any version of Chrome.
I thought these new browsers were now supported?
If your OS is windows 7 or vista, you need run your selenium server as administrator.