UseCase "Ensure that the correct combination of versions of Firefox and of selenium-webdriver is installed"
|
Content
The newest version of selenium-webdriver might not work as expected with Firefox' newest version.
In July 2016 for example, selenium-webdriver 2.53 does not work with Firefox 47.Component 153610 Footnote {{#counter:footnotes}}Property "CiteRef" (as page type) with input value "Component 153610 Footnote {{#counter:footnotes}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.{{#scite:Component 153610 Footnote {{#counter:footnotes}}|type=footnote|citation text=https://github.com/SeleniumHQ/selenium/issues/2257}}
So you have to ensure a working combination of Firefox and selenium-webdriver versions. LinuxCompetenceCenter/mediawiki-vagrant currently installs:
- selenium-webdriver 2.53.4 alongside
- Firefox 45.0.2
You can check the versions installed by
vagrant@mediawiki-vagrant:/vagrant/mediawiki/tests/browser$ firefox -v
for Firefox' version installedvagrant@mediawiki-vagrant:/vagrant/mediawiki/tests/browser$ bundle show
which reveals selenium-webdriver's version as used by the corresponding test execution scripts
Changing versions of selenium webdriver and/or Firefox used by the corresponding test execution scripts
Firefox
- Download a version from firefox-mozilla-build
- E.g. for Ubuntu, install by something like
dpkg -i /tmp/firefox-mozilla-build_X.X.X-0ubuntu1_amd64.deb
selenium-webdriver
To upgrade selenium-webdriverto the newest version, run
vagrant@mediawiki-vagrant:/vagrant/mediawiki/tests/browser$ bundle update selenium-webdriver