-
-
Notifications
You must be signed in to change notification settings - Fork 46
fix: pin browser #447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: pin browser #447
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -159,6 +159,8 @@ def pytest_runtest_setup(item: Item) -> None: | |||||||||||
| }, | ||||||||||||
| ) | ||||||||||||
| chrome_options.enable_bidi = True | ||||||||||||
| # https://forum.robotframework.org/t/maximize-window-chromedriver-133/8416/3 | ||||||||||||
| chrome_options.browser_version("132") | ||||||||||||
| chrome_options.add_argument("disable-dev-shm-usage") | ||||||||||||
| chrome_options.add_argument("no-sandbox") | ||||||||||||
| chrome_options.add_argument("allow-file-access-from-files") | ||||||||||||
|
|
@@ -192,7 +194,7 @@ def pytest_runtest_setup(item: Item) -> None: | |||||||||||
| case "remote": | ||||||||||||
| chrome_options = webdriver.ChromeOptions() | ||||||||||||
| # https://aerokube.com/images/latest/#_chrome | ||||||||||||
| chrome_options.browser_version = "127.0" | ||||||||||||
| chrome_options.browser_version = "128.0" | ||||||||||||
|
Comment on lines
196
to
+197
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider using dynamic version for remote browser. Similar to the local browser version, the remote browser version is hardcoded to "128.0". -# https://aerokube.com/images/latest/#_chrome
-chrome_options.browser_version = "128.0"
+# Use environment variable to allow flexible version configuration
+chrome_options.browser_version = os.getenv("REMOTE_CHROME_VERSION", "latest")📝 Committable suggestion
Suggested change
|
||||||||||||
| chrome_options.set_capability( | ||||||||||||
| "selenoid:options", | ||||||||||||
| { | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🛠️ Refactor suggestion
🧩 Analysis chain
Verify Chrome browser version compatibility.
The code sets Chrome browser version to "132" for local instances. However, this might cause compatibility issues as Chrome versions are frequently updated.
Consider using a more dynamic approach to handle browser versions:
🌐 Web query:
💡 Result:
The latest stable version of Google Chrome is 133.0.6943.98 for Windows and macOS, and 133.0.6943.98 for Linux[1][5]. These versions began rolling out on February 12, 2025[5].
For mobile platforms:
Chrome updates follow a staggered rollout process across platforms and regions[1][4]. The browser maintains separate release channels (Stable, Beta, Dev) with different versioning cycles[3]. The current release continues Google's pattern of approximately monthly security updates and quarterly feature-focused releases[3][6].
Citations:
Action Required: Update Chrome Version Handling and Investigate Pipeline Error
Chrome Version Configuration:
The tests configuration in
tests/conftest.py(lines 162–163) currently hardcodes the Chrome browser version as"132". Given the latest stable release is 133.0.6943.98, using"132"may lead to compatibility issues during local tests.Suggestion: Parameterize the version to allow dynamic configuration. For example:
Pipeline Failure Notice:
A KeyError for
'session_request'on line 270 has been observed. Please verify that this error is properly addressed, as it could be unrelated to the browser version update.📝 Committable suggestion