UseCase "Ensure that the correct combination of versions of Firefox and of selenium-webdriver is installed"

From SMW CindyKate by dataspects
Component 153610
Jump to navigation Jump to search
[edit]
Keywords/Contexts

Firefox · Selenium · Testing · Cucumber · Capybara · Webdriver

Annotations
{{#compound_query:Component 153610Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCaseMotivation;?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCase "Ensure that the correct combination of versions of Firefox and of selenium-webdriver is installed";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning Property "-Has subobject" has a restricted application area and cannot be used as annotation property by a user.UseCase "Ensure that the correct combination of versions of Firefox and of selenium-webdriver is installed";?HasDirection;?IsMotivating;?IsMotivatedBy;?HasReasoning
name=MotivationsDeclaredOnThisPageResultItem|link=none}}
Motivations
Lua error in Module:Motivations at line 23: attempt to concatenate field 'hasReasoning' (a nil value).
[edit]

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 installed
  • vagrant@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

  1. Download a version from firefox-mozilla-build
  2. 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