How to avoid updating selenium webdriver for every firefox versions - ruby

How to avoid updating selenium WebDriver for new Firefox versions
I am using Selenium Webdriver and a Firefox version for testing.
Selenium:-
https://github.com/vertis/selenium-webdriver
Selenium is updated based on the Firefox version. Every time, I have to match the versions of Selenium and Firefox version to work with. How to avoid updating the version.
I have found some info about this here :
http://makandracards.com/makandra/1575-how-to-install-a-frozen-version-of-firefox-for-your-selenium-tests
Anyone know solution for it ?

For newer versions of firefox, newer versions of Selenium is required. If you want to avoid changing selenium version, simply stop update on firefox.
Go to tools --> Options --> Advanced --> Update and check Never check for updates.

Related

Module type default in Firefox

I'm not sure if this is the right place to ask this. I've googled this and not really finding the results. I'm using ES6 modules and import/export and load my initial javascript using module type
<script type="module" src="/app.js"></script>
In Chrome its on by default. In firefox you have to enable it in about:config
The problem is I cant have users manually enabling this flag for it to work. Is there a future where this will be on by default in Firefox? At CanIUse, it says that in version 60, its on by default. But every version of Firefox I've downloaded is only version 59.00 (Windows). I would like to avoid babel if possible.
Is there a future where this will be on by default in Firefox?
Yes.
At CanIUse, it says that in version 60, its on by default. But every version of Firefox I've downloaded is only version 59.00 (Windows).
You can download the nightly build here.
I would like to avoid Babel if possible.
Well you cannot avoid if you want to support older browsers that do not (yet) support this feature.

Getting Marionette/Geckodriver up and running with Protractor

So I've been having an issue getting my Protractor/Jasmine tests running in FireFox. I've been aware of the version issue from FireFox that doesn't support selenium angular/bootstrap etc etc and that has been my issue to date.
I was informed to try geckodriver but really can't find any good resources on how to set it up using protractor and jasmine. Or even which driver is the appropriate one to use.
Recently I've tried the following to get FF back up and running (all resulted with no luck):
Downgraded FireFox to as low as 33.x.x while keeping
Protractor/Jasmine at current versions (4.0.5 and 2.51 respectively).
Downgraded Protractor to as low as 3.0.0 while keeping FF at current version (47.0.1)
Downgraded both Protractor and FF to the lowest above versions.
Used Latest Version of FF 47.0.1 with lesser versions of Protractor.
Used Latest Version of FF 47.0.1 with latest version of Protractor 4.0.5
Used directConnect: true and directConnet: false
So I guess now I have one of two questions:
1. Could somebody post a protractor config snippet using the geckodriver / or direct me to a walk-through of this.
2. Inform me of a work around or a working solution (versions of both webdrivers/protractor/jasmine, etc).
If you need to see errors or my config file or anything at all please just simply comment and I'll be happy to revise.
There was a period of time around Firefox v46 and Selenium v2.5x where things were incompatible due to changes to the firefox web-driver. The issues were quickly addressed by the community.
The issue with Protractor lies with the webdriver-manager being a bit out of date with the updates. As per discussions on github, they are aware of this, and a fix is coming.
The workaround in the meantime is to manually update the outdated pieces.
Here's how you'd do it, run
webdriver-manager update
This will give you the paths to all the components the webdriver-manager handles for you.
Navigate to the selenium-server-standalone.jar file (protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar in my case) and replace this with the latest selenium standalone jar (anything v3+ should be good). Make sure to retain the exact filename as the previous jar file. (link: http://www.seleniumhq.org/download/)
Repeat the process to get the latest Gecko web-driver. Uncompress and replace the current version. (link: https://github.com/mozilla/geckodriver/releases)
Now run your tests through protractor and you should be good with the latest version of Firefox.
Good luck and happy testing :)

Why GWT browser plugin is not supported in Mozilla Firefox 27 onwards?

I am not able to run my GWT application due to browser plugin issue. I have tried to find the GWT plugin for Mozilla Firefox browser for the version of 36. Could you please anyone can help me to identify the suitable plugin.
Rationale can be found in the GWT forum: https://groups.google.com/d/msg/google-web-toolkit/QSEjbhhHB4g/wtI5TYFRevsJ
TL;DR: the plugin was using APIs that have been removed in Firefox 27, so it's no longer possible to compile it (and it was required to recompile it for each new version of Firefox).
Now, I am successfully running my gwt application on any of the browser, without installing any browser plugin. If you are using gwt-2.6.0, run your application in Super Server Mode. That will generate a link related to your application. Place that link in any browser url bar and run it. But it will take some time of compiling the application and then you will get the UI on the browser screen. To install gwt-2.6.0 onwards, your installed JDK should be after 7 version.

Has anyone successfully run a WatiN test against FireFox 4?

It looks like the jssh plugin (required to run WatiN) still needs work going by FireFox Bug 586869, to quote:
Probably obvious to anyone who ought
to be trying to maintain jssh, but, to
get it back all you have to do is "hg
up -r 3ca5d6674feb" and copy it to
wherever you're going to work on it.
Haven't found much recent activity on SO for jssh either.
Firefox + jssh build
WatiN - Support for firefox and chrome
check the links - watin works with firefox latest version after installing mozrepl-jsshv2.6.xpi provided by Fabian
Thanks to Fabian. I hope the Watin and Firewatir community embeds this xpi in their repo

Firefox 3.6 update breaks selenium

I'm unable to run any selenium tests since I updated Firefox to 3.6. Is it happening just to me or is it everybody?
Error message I get is: Could not start Selenium session: Failed to start browser session
This is in Windows Xp.
Ok. Found the problem. My Netbeans was using version 1.0.1 which did not support 3.6.
This fixed it: http://geekswithblogs.net/thomasweller/archive/2010/02/14/making-selenium-1.0.1-work-with-firefox-3.6.aspx
You can also try the extension "Nightly Test Tool" before a extension officially supports a new released version.
Selenium 1.0.3 was updated to work with Firefox 3.6 so suggest updating your version instead of going in and hacking the jar file.
You can get the latest version from http://code.google.com/p/selenium/downloads/list

Resources