Selenium WebDriver and Opera Driver - selenium

I would like to run my Selenium WebDriver tests on Opera, but when I had a look at the Opera driver at Selenium HQ and GitHub page, it says:
Opera Driver requires Opera 12.x and older versions
Note that OperaDriver is only compatible with Presto-based Operas up until 12.16. Blink-based Operas (15 and onwards) are not supported.
Opera is now up to version 22.0, so far beyond the maximum supported version of 12. So, my questions are: -
If there is no Opera driver for Selenium, then how does one automate Opera tests?
It seems strange to stop at version 12, even taking the underlying technology change into account. Is Opera support waning or is it that Selenium WebDriver is no longer the best tool?

Opera has just released an early beta of WebDriver for their Blink based browsers. See https://github.com/operasoftware/operachromiumdriver
To quote from the link provided:
OperaChromiumDriver can be used without extra setup on Chromium-based versions of Opera starting from version 26.
For driving Presto-based Opera browsers, refer to the OperaPrestoDriver project.
Although versions earlier than 26 aren't officially supported, the OperaChromiumDriver v. 0.1.0 works with Opera 25. On Windows using the 'binary' option in 'operaOptions' may be needed.

Download OperaDriver from here and write the following code for java:
System.setProperty("webdriver.opera.driver", "D:/Ripon/operadriver_win64/operadriver.exe");
WebDriver driver = new OperaDriver();
driver.get("https://duckduckgo.com/");

1 & 2)
There are 2 types of Opera - Java Based and Chrominium based.
The provided links are for Java based Opera.
https://github.com/operasoftware/operadriver#desktop
There is no official support for latest Opera versions.

Related

which selenium jar is compatible with Mozilla Firefox version 59.0.2 (32-bit)

Previously I was using Selenium version 2.53 with Firefox version 40.0.1. But now Firefox is updated and I am trying to do with updated version.
So, respond me about "which Selenium JAR is compatible with Mozilla Firefox version 59.0.2 (32-bit)"
As per best practices you must adopt any one from the below mentioned configurations:

Browser compatibility with selenium for testing forms

I want to test forms quickly and reliably. I thought selenium-ide would be the answer but was put off by the fact that newer versions of firefox do not support the selenium-ide plugin. Would other selenium products such as selenium3 enable me to test forms in up to date versions of firefox (eg 57.01)?
Yes. Here you can see Selenium 3 compatiblity with FF :
Firefox 38 and lower, use Selenium 2.46.0
Firefox < 47, use Selenium 2.53.1
Firefox >= 47, use Selenium 3.0.1 or later

Use most recent browser version with JMeter Selenium Webdriver

Im trying to use JMeter with the Selenium WebDriver plugin to do some testing. I know that it requires Firefox v. 26, however I find this to be pretty useless given that testing on anything besides the most recent browser version is pointless, as that is what users will be using.
Using the current WebDriver plugin with Firefox v 50 results in the 'browser.get()' not working. Is there a way to get the plugin to work with Firefox 50?
The latest Selenium/WebDriver Support plugin available via JMeter Plugins manager as of now is version 1.4.0. It comes with selenium-firefox-driver-2.52.0
It means any browser supported by Selenium 2.52.0 will be supported
Looking into Selenium Changelog Selenium 2.52.0 supports Firefox 45 which is an ESR release according to Mozilla FAQ:
I don't know where did you get the information regarding Firefox 26, I would recommend upgrading to Firefox 45 which should be supported till June 2017 and hopefully JMeter Plugins maintainers will upgrade Selenium libraries to version 3 by that time.
In general WebDriver will be always behind the browsers development so you will have to live with the supported versions.
References:
JMeter Plugins Forum
The WebDriver Sampler: Your Top 10 Questions Answered

Why do we need IEDriver and ChromeDriver but no Firefox Driver?

I have small doubt.
Why do we need IEdriver and Chrome Driver running selenium scrits in IE and Chrome but we do not need a firefox driver to run the script?
Is there any reason for the same?
This is because of the Native Browser approach used in WebDriver.
Each and every browser uses different JS Engine.
All drivers [Chrome Driver, IE driver, etc.,] are built based on the special JS Engine used by each browser.
Selenium offers inbuilt driver for Firefox but not for other browsers. [Not sure it may happen in future, since TestNG and JUnit library files are a part of Selenium-standalone-server right now]
Straight from a google search for FirefoxDriver, the official documentation states:
Firefox driver is included in the selenium-server-stanalone.jar available in the downloads. The driver comes in the form of an xpi (firefox extension) which is added to the firefox profile when you start a new instance of FirefoxDriver.
External drivers are the preferred process by the Selenium developers. They allow the driver versioning to be tied more closely to the browser than to Selenium, and they can be supported by the browser authors (e.g., ChromeDriver, OperaDriver). There is a long-standing plan to replace FirefoxDriver with a Mozilla-supported driver based on Mozilla's "Marionette" architecture.
Firefox driver is already included in the selenium-server-standalone.jar package.

Documentation confusion: what version of Firefox does Selenium support?

Looking at Platforms Supported by Selenium the highest version of selenium supported is v 10. I am assuming this is in line with 10 being the current extended support release, v17 is the next ESF, due out on 20 Nov 2012
Firefox extended suport
Firefox release calendar
However looking at the release notes for the Selenium client driver 2.25 (18 July 12) it says "Updated supported versions of Firefox to 17"
Which page should we read? How does the Platforms Supported by Selenium page relate to the 2.2.5 release?
You should refer to CHANGELOG. Thats always the latest. Seleniumhq.org gets updated by someone manually... Which is not happening regularly I guess.
I use selenium 2.25 and I had to download to Firefox version 14 in order to get selenium to work correctly.
Other people have documented this issue but I haven't found any resources that say what versions of Firefox are supported for each version of selenium.
selenium-firefox-driver 2.25.0 not working correctly with Firefox 15
Also if you are using selenium with your web browser you are going to have to turn off automatic updates on your browser to prevent it from updating.