How to run safari in protractor using selenium 2.47.1 jar? - node.js

How to run safari 5.1.7 browser(windows machine) in protractor using selenium 2.47.1 jar?
I need to run safari 5.1.7 browser(windows machine) in protractor using selenium 2.47.1 jar.
Can someone help on this?
From where I need to install the safari driver?(Please provide the link)

I don't think its possible. Safari driver doesn't support safari browser on WINDOWS machine and is applicable only for OS X. Here's the link that explains it
Platforms supported by Selenium
. However if you want to try it for OSX then here's a detailed wiki page for safari driver usage with selenium -
Safari Driver with Selenium
You must be able to use it for protractor too. Download the extension file SafariDriver.safariextz for safari from the above mentioned link and then install it. Only difference would be to use it with Javascript. Add in the browser name in your conf.js file -
'browserName': 'safari'
If you are still facing issues, please refer to this detailed link for help. Hope it helps.

Related

PhpStorm looks for Google Chrome when I set up Firefox

PhpStorm 2021.2.2 on Ubuntu 20.04. I set up a Run Configuration as follow:
But when I launch this Run Configuration I get:
I don't understand why it look for Google Chrome if I selected Firefox as a browser.
Sadly that is correct / no error here.
JavaScript debug is done with Chrome-based browsers only (has been like that for quite some time now).
https://www.jetbrains.com/help/phpstorm/2021.2/run-debug-configuration-javascript-debug.html
https://www.jetbrains.com/help/phpstorm/2021.2/debugging-javascript-in-chrome.html
Debugging of JavaScript code is only supported in Google Chrome and in other Chromium-based browsers.
To debug JavaScript using Firefox you need to use Firefox Remote type of Run/Debug Configuration (need to manually create and use it) and enable Remote Debugging in Firefox in advance. https://www.jetbrains.com/help/phpstorm/2021.1/debugging-javascript-in-firefox.html has all the info.
A ticket to watch after: https://youtrack.jetbrains.com/issue/WEB-14987
NOTE: the aforementioned Firefox Remote type of Run/Debug Configuration is no longer present in current 2021.2 version. The last version that has it is 2021.1.
In addition to the above, from https://intellij-support.jetbrains.com/hc/en-us/community/posts/360010846880/comments/360003174860
Unfortunately, there's nothing we can offer for debugging in Firefox now :(
We used to support Firefox Remote Debugging (but without source maps) through the Firefox Remote run configuration, but our solution doesn't work in the latest Firefox versions due to changes in the protocol, and there doesn't seem to be an easy way to fix it. We've made some progress recently, but there are still some blocking issues.
Related tickets:
https://youtrack.jetbrains.com/issue/WEB-45986
https://youtrack.jetbrains.com/issue/WEB-48076
https://youtrack.jetbrains.com/issue/WEB-2337

Selenium automation PAF

I am looking for automation testing on iOS, have got to know of ipaf.
Will Pace Automation Framework support automation on latest firefox browser.
Any idea anyone?
in the init configuration file please use below configuration to execute your test in firefox.
browser=FireFox
PAF supports FireFox browser, so it should work on the latest FireFox browser.

WebDriverManager.chromedriver().useBetaVersions().version("73.0.3683.20").setup(); runs Chrome 72

In execution logs i see:
"[main] DEBUG io.github.bonigarcia.wdm.WebDriverManager - Driver chromedriver 73.0.3683.20 found in cache"
But when I open in Chrome: Help -> Google Chrome - informations I see that it's 72
Chromedriver and ChromeBrowser are two seperate things. Chromedriver allows Selenium to control and manage the chrome browser.
WebDriverManager checks the version of the driver (e.g. chromedriver) available on your system. If not found, it uses the latest version of the driver.
From ChromeDriver downloads page (http://chromedriver.chromium.org/downloads), the latest version is 73.0.3683.20.
So it seems it has automatically downloaded the latest version of the driver, which is printed in the logs that you see.
Chromedriver 73 supports Chrome Browser v72 so it will work seamlessly

How to configure headless browser using protractor on windows so that it can be run using team city without any GUI resolution issues?

How to configure headless browser using protractor on windows so that it can be run using team city without any GUI resolution issues?
Currently I am using chrome browser to run my UI automation test but at some page I am facing element not found issue due to resolution issue.
So I wanted to go for an headless browser.
Thanks.
Phantomjs is officially discontinued, so you must use headless Chrome. As for the instructions on how to set it up, follow instructions
Getting started with headless chrome can be found here

Browser support by Watir

I know that Watir supports Firefox and Chrome.
Does someone know which versions of Firefox and Chrome are supported?
According to Watir web site they support Firefox 5 and that is a pretty old version.
As far as I know, Watir supports all recent versions of Internet Explorer, Chrome, Firefox, Safari and Opera.
At work, with the Webdriver backend, I had to downgrade from Firefox 13 to Firefox 10.0.2. That seems like a big difference, but they have been cranking out the FF versions lately. It's probably because of a change in port, but I am just speculating.

Resources