How to setup Selenium 4 for old Chrome version? - selenium

By some project reasons I have to use Selenium 4 (4.0.0-rc3) and Chrome version 71.
Of course the current chromedriver (version 94) doesn't work with old chrome.
I have downloaded the source code of chromium project for debugging and try to understand how actually driver works with selenium. Probably I will try to make my own driver version but at this moment it seems like an inefficient solution.
I am really stuck with this and will be happy to get any advice.
Is it possible just to configure driver by capabilities (or any parameters) for working with old chrome?

The Chrome version you're targeting Chrome 71 is already deprecated. Using Selenium 4 with this much obsolete version of Chrome will not work and I think apart from creating your own code piece, there is nothing much you can do.
Using such an obsolete piece of software, in this age of internet, will open a pot of bugs for you, and if you use this to connect to internet, then chances are people may exploit any hidden security vulnerabilities to attack your application.
I would strongly suggest you to talk within your project team to use an updated version of Chrome.

ChromeDriver 2.46 will work with Chrome 71.

Related

Exact matching latest selenium chrome driver does not exist, what to do?

Our corporate google chrome has been recently updated to version 91.0.4472.77, for which I am not able to find chrome driver, which in turn causing problems in our existing automation code.
Can anyone please suggest any way to deal with this?
Chromdriver is not available for 91.0.4472.77
till the time it is available (probably within 2 days) you can try out the beta version
ChromeDriver 91.0.4472.19
Download from here

how to install sqlite manager addon in firefox quantum (browser version 57)

i tried to install sqlite manager addon in firefox but it showing me an error (your Firefox Quantum Browser isn't compatible )
my Firefox Browser version is 57.0.4
This extension depended upon the interface to sqlite engine embedded
in Firefox. As the interface has been removed in Firefox 57, this
extension no longer functions. However, the extension can be used on
ESR release of Firefox, which can be downloaded at
https://www.mozilla.org/en-US/firefox/organizations/all/.
Stated on the addon itself. I myself pushed my firefox version back but have also been using DB Browser (http://sqlitebrowser.org/). As its not too bad i may upgrade back to the latest firefox!
Firefox Version Directory: https://ftp.mozilla.org/pub/firefox/releases/
Hopefully this may help someone fishing around.
You should install older versions of Firefox. Here is link
https://ftp.mozilla.org/pub/firefox/releases/
An easy work around to browser version issues is to install thunderbird 38 (if you don't use thunderbird for email) https://ftp.mozilla.org/pub/thunderbird/releases/ and then install SQLite manager as an extension to thunderbird. I don't use thunderbird for anything else so I set it to no update: options>advanced>update>never check for update.

Will WebdriverIO work with Selenium 3.X

I've just started learning WebdriverIO So I have quick question. On their github repository I have seen older version of chrome & firefox. So will WebdriverIO work with updated Chrome version e.g 62.x or Firefox with 47.x ?
Also will it work with selenium 3.x ?? I have heard that its only has a support for selenium version 2.x??
Thanks
The only difference between Selenium 2 & Selenium 3 is that they renounced the old Selenium RC architecture and now they are solely implementing the Webdriver W3C Standard, which I highly recommend you read.
Renouncing Selenium RC means that there is no backwards compatibility between Selenium 1 and 3, Selenium 2 being a middle way to ease the migration to the new Webdriver API implementation.
You should have absolutely no problem running with Selenium 3.x.
That being said, I am speaking out of experience (going for second year with a WebdriverIO-based framework). I never had any major problems with WebdriverIO and the main issues you'll encounter are the following:
driver teams (gheckodriver, chromedriver, etc) not implementing the Webdriver standard correctly (just file a BUG, or keep a lookout for already opened issues related to your problem on their respective GitHub Issues page);
major browsers having switched to a more aggressive release schedule will sometimes push new features not tackled by the equivalent driver, thus by updating, you might end up with failing checks;
deprecation and/or lacking/limited functionality: the guys working on WebDriver will cut and add features in accordance with how they see the progression of web-apps automation, so you will always have to switch to some new methods/approaches/best-practices every now & then.
!!! Note: all this free-software (Selenium, WebdriverIO, etc.) you're enjoying is mostly produced by a
handful of people that sacrifice their free/spare time to deliver it. It's not their job to deliver BUG-fixes and deploy like Google does with Chrome (every six weeks).
So have patience & if you can, contribute! :)

Version compatibility of Firefox and the latest Selenium IDE (2.9.1.1-signed)

I visited https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/
to install the latest Selenium IDE (v 2.9.1) in Firefox.
My Firefox version is 54 (64-bit)
OS: Windows 10 Pro 64-bit (10.0, Build 14393)
But unfortunately "Add to Firefox" button was shown disabled on the site https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/
On that site NOTE was found as:
Note: Selenium IDE will NOT work on Firefox version 55 onwards. Please stay on Firefox version 54 or older.
What can I do to install Selenium IDE on FF 54?
Sad but true, It is no secret by now that Selenium IDE will be deprecated. In fact, it has already stopped working since Firefox 55. Here are some potential replacements that you may consider applying to your project:
Robot Framework
Katalon Studio
Protractor
TestProject
Good luck and Good bye Legend.
I think Firefox is not supported Selenium IDE after 53 or 54 version, I have read that blog
https://seleniumhq.wordpress.com/2017/08/09/firefox-55-and-selenium-ide/
Firefox 55 doesn't support Selenium IDE 2.9.1. FF 54 and less are OK.
Installation Selenium IDE on FF 54:
1. Open Firefox 54 and visit https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/
2. Click "Download Anyway" link to download (In my case, it was selenium_ide-2.9.1-fx.xpi)
Open .xpi file you download in Firefox 54 -> Click Install and then Restart Now according to following interface:
I faced the similar issues few weeks ago.Firefox version 55 doesn't support Selenium IDE. You need to downgrade your Firefox browser to Firefox version 54, 53 or below.
For doing so, please refer the link below
https://support.mozilla.org/en-US/kb/install-older-version-of-firefox
Also, you need to delete all your old firefox data before installing older version because it might not work if you don't do so.
Then finally you can add Selenium IDE and it works fine.
I need to run Firefox 54 with Selenium but, like the others on this question, wasn't able to easily install Selenium. I did find a way to do this without going to a 3rd party site by copying the XPI download link (just right click on the disabled Add to Firefox button in the Firefox Add-ons page and copy the location), downloading it within Chrome or another browser, and finally just drag and drop the XPI into Firefox. That worked for me, hope this helps someone else.
Ironically, the best versions of selenium and Firefox that work better, powerful and with more options (according to my experience), are those, Firefox 54.0.1 and selenium 2.9.1. Despite they are deprecated. So I understand well your question and need.
Here you have a trick to install that Selenium version in that Firefox version, getting away the inactive add-on button:
Download manually the selenium version 2.9.1 (as a file) and then add it manually through "Install Add-on from file" in Firefox in the section "Extensions".
This is the link to download selenium 2.9.1:
https://ui.vision/howto/getseleniumide

What are the benefits of using Marionette FirefoxDriver instead of the old Selenium FirefoxDriver for a Selenium tester?

Last weeks there has been a lot of noise about this new FirefoxDriver called Marionette. To use Firefox with Selenium, we used to use the "old" Selenium FirefoxDriver. From Firefox 48.0 onwards it is going to be required to use this new FirefoxDriver developed by Mozilla.
I understand it is required to change to that direction to get every browser supports and develops its drivers and to get drivers independent of Selenium. Besides, it is supposed if Mozilla develops its own driver, it will be faster and easier to fix issues and to develop features.
My question is, for those who create automated tests using Selenium framework, is there any benefit of using Marionette instead of the "old" Selenium supported FirefoxDriver? _(Such as a better performance, a better compatibility...)
The main advantage for using the Mozilla-provided, Marionette-based Geckodriver solution is that it works for versions of Firefox 48 and higher. The legacy driver provided and maintained by the Selenium project doesn't work for Firefox 48 or higher, and will never work for those versions of Firefox.
The legacy driver is implemented as a Firefox extension. This extension is installed in the profile used by the driver when WebDriver launches Firefox. Firefox 48 introduced two new features that disabled this browser extension. The first is the so-called "electrolysis" feature, or multiprocess Firefox. Electrolysis changes the way extensions have to deal with the browser in ways the Selenium team has not taken the time to fully understand.
The second, more important requirement is that all browser extensions must be signed by Mozilla before the browser will allow them to load. This latter feature has been in Firefox for several versions, but beginning with 48, it can no longer be disabled. The WebDriver browser extension introduces several valid security concerns for the Firefox browser, and as such, will not be signed by Mozilla's security team. This, in turn, renders the extension inoperable, and thus Selenium can no longer communicate with Firefox. The Marionette-based solution, being developed and maintained by Mozilla in the first place, is blessed by them for use in automating Firefox, and as such carries a commitment that it will continue to work with future versions moving forward.
So the primary benefit of using Marionette with Firefox 48 and higher is that it will work, whereas other solutions won't.