Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Copy link
Contributor

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:

-# https://forum.robotframework.org/t/maximize-window-chromedriver-133/8416/3
-chrome_options.browser_version("132")
+# Use environment variable to allow flexible version configuration
+chrome_options.browser_version(os.getenv("CHROME_VERSION", "latest"))

🌐 Web query:

What is the latest stable version of Chrome browser?

💡 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:

  • iOS: Version 133 (133.0.6943.84) was released for iOS devices[1]
  • Android: The current Android Stable version aligns with desktop releases at 133 series[1]

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:

    -# https://forum.robotframework.org/t/maximize-window-chromedriver-133/8416/3
    -chrome_options.browser_version("132")
    +# Use environment variable for flexible Chrome version configuration
    +chrome_options.browser_version(os.getenv("CHROME_VERSION", "latest"))
  • 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

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# https://forum.robotframework.org/t/maximize-window-chromedriver-133/8416/3
chrome_options.browser_version("132")
# Use environment variable for flexible Chrome version configuration
chrome_options.browser_version(os.getenv("CHROME_VERSION", "latest"))

chrome_options.add_argument("disable-dev-shm-usage")
chrome_options.add_argument("no-sandbox")
chrome_options.add_argument("allow-file-access-from-files")
Expand Down Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The 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

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# https://aerokube.com/images/latest/#_chrome
chrome_options.browser_version = "127.0"
chrome_options.browser_version = "128.0"
# Use environment variable to allow flexible version configuration
chrome_options.browser_version = os.getenv("REMOTE_CHROME_VERSION", "latest")

chrome_options.set_capability(
"selenoid:options",
{
Expand Down
Loading