Runtime versions using Python and Selenium Webdriver - Amazon CloudWatch

Runtime versions using Python and Selenium Webdriver

The following sections contain information about the CloudWatch Synthetics runtime versions for Python and Selenium Webdriver. Selenium is an open-source browser automation tool. For more information about Selenium, see www.selenium.dev/

The naming convention for these runtime versions is syn-language-framework-majorversion.minorversion.

Important

The following CloudWatch Synthetics runtime versions are scheduled to be deprecated on March 8, 2024.

  • syn-python-selenium-2.0

  • syn-python-selenium-1.3

  • syn-python-selenium-1.2

  • syn-python-selenium-1.1

  • syn-python-selenium-1.0

For more information, see CloudWatch Synthetics runtime support policy.

syn-python-selenium-3.0

Version 3.0 is the latest CloudWatch Synthetics runtime for Python and Selenium.

Major dependencies:

  • Python 3.8

  • Selenium 4.15.1

  • Chromium version 121.0.6167.139

New features in syn-python-selenium-3.0:

  • Updated versions of the bundled libraries in Chromium— The Chromium dependency is updated to a new version.

syn-python-selenium-2.1

Major dependencies:

  • Python 3.8

  • Selenium 4.15.1

  • Chromium version 111.0.5563.146

New features in syn-python-selenium-2.1:

  • Updated versions of the bundled libraries in Chromium— The Chromium and Selenium dependencies are updated to new versions.

syn-python-selenium-2.0

Important

This runtime version is scheduled to be deprecated on March 8, 2024. For more information, see CloudWatch Synthetics runtime support policy.

Major dependencies:

  • Python 3.8

  • Selenium 4.10.0

  • Chromium version 111.0.5563.146

New features in syn-python-selenium-2.0:

  • Updated dependencies— The Chromium and Selenium dependencies are updated to new versions.

Bug fixes in syn-python-selenium-2.0:

  • Timestamp added— A timestamp has been added to canary logs.

  • Session re-use— A bug was fixed so that canaries are now prevented from reusing the session from their previous canary run.

syn-python-selenium-1.3

Important

This runtime version is scheduled to be deprecated on March 8, 2024. For more information, see CloudWatch Synthetics runtime support policy.

Major dependencies:

  • Python 3.8

  • Selenium 3.141.0

  • Chromium version 92.0.4512.0

New features in syn-python-selenium-1.3:

  • More precise timestamps— The start time and stop time of canary runs are now precise to the millisecond.

syn-python-selenium-1.2

Important

This runtime version is scheduled to be deprecated on March 8, 2024. For more information, see CloudWatch Synthetics runtime support policy.

Major dependencies:

  • Python 3.8

  • Selenium 3.141.0

  • Chromium version 92.0.4512.0

  • Updated dependencies— The only new features in this runtime are the updated dependencies.

syn-python-selenium-1.1

Important

This runtime version is scheduled to be deprecated on March 8, 2024. For more information, see CloudWatch Synthetics runtime support policy.

Major dependencies:

  • Python 3.8

  • Selenium 3.141.0

  • Chromium version 83.0.4103.0

Features:

  • Custom handler function— You can now use a custom handler function for your canary scripts. Previous runtimes required the script entry point to include .handler.

    You can also put canary scripts in any folder and pass the folder name as part of the handler. For example, MyFolder/MyScriptFile.functionname can be used as an entry point.

  • Configuration options for adding metrics and step failure configurations— These options were already available in runtimes for Node.js canaries. For more information, see SyntheticsConfiguration class.

  • Custom arguments in Chrome — You can now open a browser in incognito mode or pass in proxy server configuration. For more information, see Chrome().

  • Cross-Region artifact buckets— A canary can store its artifacts in an Amazon S3 bucket in a different Region.

  • Bug fixes, including a fix for the index.py issue— With previous runtimes, a canary file named index.py caused exceptions because it conflicted with the name of the library file. This issue is now fixed.

syn-python-selenium-1.0

Important

This runtime version is scheduled to be deprecated on March 8, 2024. For more information, see CloudWatch Synthetics runtime support policy.

Major dependencies:

  • Python 3.8

  • Selenium 3.141.0

  • Chromium version 83.0.4103.0

Features:

  • Selenium support— You can write canary scripts using the Selenium test framework. You can bring your Selenium scripts from elsewhere into CloudWatch Synthetics with minimal changes, and they will work with AWS services.