|
26 | 26 | TEST_ANDROID_PLATFORM_API = os.environ.get('ANDROID_PLATFORM_API')
|
27 | 27 | TEST_PLATFORMS = os.environ.get('TEST_PLATFORMS', 'linux/amd64')
|
28 | 28 | TEST_FIREFOX_INSTALL_LANG_PACKAGE = os.environ.get('TEST_FIREFOX_INSTALL_LANG_PACKAGE', 'false').lower() == 'true'
|
| 29 | +TEST_ADD_CAPS_RECORD_VIDEO = os.environ.get('TEST_ADD_CAPS_RECORD_VIDEO', 'true').lower() == 'true' |
29 | 30 |
|
30 | 31 | if SELENIUM_GRID_USERNAME and SELENIUM_GRID_PASSWORD:
|
31 | 32 | SELENIUM_GRID_HOST = f"{SELENIUM_GRID_USERNAME}:{SELENIUM_GRID_PASSWORD}@{SELENIUM_GRID_HOST}"
|
@@ -129,7 +130,8 @@ def setUp(self):
|
129 | 130 | options = ChromeOptions()
|
130 | 131 | options.enable_downloads = SELENIUM_ENABLE_MANAGED_DOWNLOADS
|
131 | 132 | options.add_argument('disable-features=DownloadBubble,DownloadBubbleV2')
|
132 |
| - options.set_capability('se:recordVideo', True) |
| 133 | + if TEST_ADD_CAPS_RECORD_VIDEO: |
| 134 | + options.set_capability('se:recordVideo', True) |
133 | 135 | options.set_capability('se:name', f"{self._testMethodName} ({self.__class__.__name__})")
|
134 | 136 | options.set_capability('se:screenResolution', '1920x1080')
|
135 | 137 | if SELENIUM_GRID_TEST_HEADLESS:
|
@@ -165,7 +167,8 @@ def setUp(self):
|
165 | 167 | options = EdgeOptions()
|
166 | 168 | options.enable_downloads = SELENIUM_ENABLE_MANAGED_DOWNLOADS
|
167 | 169 | options.add_argument('disable-features=DownloadBubble,DownloadBubbleV2')
|
168 |
| - options.set_capability('se:recordVideo', True) |
| 170 | + if TEST_ADD_CAPS_RECORD_VIDEO: |
| 171 | + options.set_capability('se:recordVideo', True) |
169 | 172 | options.set_capability('se:name', f"{self._testMethodName} ({self.__class__.__name__})")
|
170 | 173 | options.set_capability('se:screenResolution', '1920x1080')
|
171 | 174 | if SELENIUM_GRID_TEST_HEADLESS:
|
@@ -193,7 +196,8 @@ def setUp(self):
|
193 | 196 | options = FirefoxOptions()
|
194 | 197 | options.profile = profile
|
195 | 198 | options.enable_downloads = SELENIUM_ENABLE_MANAGED_DOWNLOADS
|
196 |
| - options.set_capability('se:recordVideo', True) |
| 199 | + if TEST_ADD_CAPS_RECORD_VIDEO: |
| 200 | + options.set_capability('se:recordVideo', True) |
197 | 201 | options.set_capability('se:name', f"{self._testMethodName} ({self.__class__.__name__})")
|
198 | 202 | options.set_capability('se:screenResolution', '1920x1080')
|
199 | 203 | if SELENIUM_GRID_TEST_HEADLESS:
|
|
0 commit comments