Skip to content

Test Selenium 3 with current browser versions - #417

Merged
stof merged 3 commits into
minkphp:masterfrom
aik099:ci-selenium3-latest-browsers
Nov 18, 2026
Merged

stof merged 3 commits into
minkphp:masterfrom
aik099:ci-selenium3-latest-browsers

Conversation

@aik099

@aik099 aik099 commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Selenium 2.53.1 and 3 Docker images were last built in 2016 and 2021, so CI tests Firefox 47/92 and Chrome 53/94, while people use current browser versions with Selenium 3 (see minkphp/webdriver-classic-driver#72).

Changes:

  • run Selenium 3 jar on the runner with its preinstalled Chrome/Firefox and drivers instead of Docker image

The runner image is updated about weekly, so browsers can be up to about a week behind the latest release.

Selenium 2.53.1 and 4 jobs still use Docker images.

Firefox hover tests don't fail on Firefox 153+ as they do in minkphp/webdriver-classic-driver#69: this driver doesn't use the Actions API, which is where Firefox remembers the cursor position.

Chrome form tests also don't fail as they do in minkphp/webdriver-classic-driver#68 (clicks not waiting for the navigation they trigger). I think the mouse move before each click avoids it: adding the same move to webdriver-classic-driver made its Form tests pass 5 of 5 runs instead of 1 of 5. Locally this driver still failed in 2 of 49 runs (form submit tests), so the bug isn't fully gone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MqZBAjVsaHhnSadusMUzuu

@codecov

codecov Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.02%. Comparing base (2654689) to head (7faaa94).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #417      +/-   ##
============================================
+ Coverage     85.82%   89.02%   +3.19%     
  Complexity      184      184              
============================================
  Files             1        1              
  Lines           501      501              
============================================
+ Hits            430      446      +16     
+ Misses           71       55      -16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

aik099 and others added 3 commits October 11, 2026 17:28
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqZBAjVsaHhnSadusMUzuu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MqZBAjVsaHhnSadusMUzuu
They can be up to about a week behind the latest release, but come with
matching drivers and need no install steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aik099
aik099 force-pushed the ci-selenium3-latest-browsers branch from 03ed73c to 7faaa94 Compare October 11, 2026 14:28
@aik099 aik099 changed the title Test Selenium 3 with latest browser versions Test Selenium 3 with current browser versions Oct 11, 2026
@stof
stof merged commit 6ae04e1 into minkphp:master Nov 18, 2026
17 checks passed
@aik099
aik099 deleted the ci-selenium3-latest-browsers branch November 18, 2026 18:15
@aik099

aik099 commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

@uuf6429, do you want something like that (using the latest browser versions with Selenium 3 tests because Selenium docker images use stale browser versions) in https://github.com/minkphp/webdriver-classic-driver as well?

@uuf6429

uuf6429 commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

@uuf6429, do you want something like that (using the latest browser versions with Selenium 3 tests because Selenium docker images use stale browser versions) in https://github.com/minkphp/webdriver-classic-driver as well?

I'm not using mink or behat for the foreseeable future, so personally I don't mind either way.

The original justification of sticking with docker was that people were supposed to use repeatable throwaway setups, which also meant upgrading should be easier (so we wouldn't need to stick with old selenium versions).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants