Page MenuHomePhabricator

Investigate the startup logs for running wdio tests in core
Closed, ResolvedPublic

Description

At the start of the core tests we get:

00:01:29.491 > selenium-test
00:01:29.491 > if [ "$CI" = true ]; then node tests/selenium/docs/Stack/webdriverio.js; fi && wdio ./tests/selenium/wdio.conf.js
00:01:29.491 
00:01:30.095 2026-02-19T17:03:34.351Z INFO webdriver: Initiate new session using the WebDriver protocol
00:01:30.480 2026-02-19T17:03:34.736Z INFO chromedriver: Starting ChromeDriver 120.0.6099.224 (3587067cafd6f5b1e567380acb485d96e623ef39-refs/branch-heads/6099@{#1761}) on port 37439
00:01:30.480 2026-02-19T17:03:34.737Z INFO chromedriver: Remote connections are allowed by an allowlist (0.0.0.0).
00:01:30.480 2026-02-19T17:03:34.737Z INFO chromedriver: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
00:01:30.480 2026-02-19T17:03:34.738Z INFO chromedriver: ChromeDriver was started successfully.
00:01:30.487 2026-02-19T17:03:34.744Z INFO @wdio/utils: Started Chromedriver v120.0.6099.224 with params --port=37439 --binary=/usr/bin/chromedriver --allowed-origins=* --allowed-ips=0.0.0.0 in 288ms on port 37439
00:01:30.517 2026-02-19T17:03:34.774Z INFO webdriver: [POST] http://localhost:37439/session
00:01:31.527 2026-02-19T17:03:35.784Z INFO webdriver: COMMAND getWindowHandle()
00:01:31.528 2026-02-19T17:03:35.786Z INFO webdriver: [GET] http://localhost:37439/session/f12ed275f517d3287b38b147df9d127b/window
00:01:31.541 2026-02-19T17:03:35.798Z INFO webdriver: RESULT F1729AA385F07303D4038B029AD3795E
00:01:31.543 2026-02-19T17:03:35.800Z INFO webdriver: COMMAND navigateTo("http://127.0.0.1:9413//index.php?title=Main_Page")
00:01:31.544 2026-02-19T17:03:35.801Z INFO webdriver: [POST] http://localhost:37439/session/f12ed275f517d3287b38b147df9d127b/url
00:01:31.544 2026-02-19T17:03:35.802Z INFO webdriver: DATA {"url":"http://127.0.0.1:9413//index.php?title=Main_Page"}
00:01:33.486 2026-02-19T17:03:37.739Z INFO webdriver: RESULT null
00:01:33.486 2026-02-19T17:03:37.742Z INFO webdriver: COMMAND findElement("css selector", "a[title="Edit section: Getting started"]")
00:01:33.487 2026-02-19T17:03:37.742Z INFO webdriver: [POST] http://localhost:37439/session/f12ed275f517d3287b38b147df9d127b/element
00:01:33.487 2026-02-19T17:03:37.742Z INFO webdriver: DATA {"using":"css selector","value":"a[title=\"Edit section: Getting started\"]"}
00:01:33.583 2026-02-19T17:03:37.838Z INFO webdriver: RESULT {
00:01:33.583   'element-6066-11e4-a52e-4f735466cecf': '43D255F361C2ECF9A189DD60AEEEE43B_element_27'
00:01:33.583 }
00:01:33.593 2026-02-19T17:03:37.850Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
00:01:33.593 2026-02-19T17:03:37.851Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
00:01:33.593 2026-02-19T17:03:37.851Z INFO webdriver: [POST] http://localhost:37439/session/f12ed275f517d3287b38b147df9d127b/execute/sync
00:01:33.594 2026-02-19T17:03:37.851Z INFO webdriver: DATA {"script":"\n            function webdriverioPolyfill() {\n  var __defProp = Object.defineProperty;\n  var __name = function(target, _value) {\n    return __defProp(target, \"name\", { value: _value, configurable: true });\n  };\n  var __globalThis = typeof globalThis === \"object\" && globalThis || typeof window === \"object\" && window;\n  __globalThis.__name = __name;\n}\n            webdriverioPolyfill();\n            return (function checkVisibility(elem, params) {\n      if (typeof elem.checkVisibility === \"function\") {\n        return elem.checkVisibility(params);\n      }\n      return null;\n    }).apply(null, arguments)\n        ","args":[{"element-6066-11e4-a52e-4f735466cecf":"43D255F361C2ECF9A189DD60AEEEE43B_element_27","ELEMENT":"43D255F361C2ECF9A189DD60AEEEE43B_element_27"},{"withinViewport":false,"contentVisibilityAuto":true,"opacityProperty":true,"visibilityProperty":true}]}
00:01:33.595 2026-02-19T17:03:37.853Z INFO webdriver: [POST] http://localhost:37439/session/f12ed275f517d3287b38b147df9d127b/execute/sync
00:01:33.595 2026-02-19T17:03:37.853Z INFO webdriver: DATA {"script":"\n            function webdriverioPolyfill() {\n  var __defProp = Object.defineProperty;\n  var __name = function(target, _value) {\n    return __defProp(target, \"name\", { value: _value, configurable: true });\n  };\n  var __globalThis = typeof globalThis === \"object\" && globalThis || typeof window === \"object\" && window;\n  __globalThis.__name = __name;\n}\n            webdriverioPolyfill();\n            return (function(elem) {\n      try {\n        const style = window.getComputedStyle(elem);\n        return { value: style?.display ?? \"\" };\n      } catch {\n        if (typeof elem.isConnected === \"boolean\" && !elem.isConnected) {\n          throw new Error(\"stale element reference: element is not attached to the page document\");\n        }\n        return { value: \"\" };\n      }\n    }).apply(null, arguments)\n        ","args":[{"element-6066-11e4-a52e-4f735466cecf":"43D255F361C2ECF9A189DD60AEEEE43B_element_27","ELEMENT":"43D255F361C2ECF9A189DD60AEEEE43B_element_27"}]}
00:01:33.608 2026-02-19T17:03:37.865Z INFO webdriver: RESULT true
00:01:33.614 2026-02-19T17:03:37.872Z INFO webdriver: RESULT { value: 'inline' }
00:01:33.615 Edit link visible
00:01:33.615 2026-02-19T17:03:37.873Z INFO webdriver: COMMAND deleteSession()
00:01:33.615 2026-02-19T17:03:37.873Z INFO webdriver: [DELETE] http://localhost:37439/session/f12ed275f517d3287b38b147df9d127b
00:01:33.673 2026-02-19T17:03:37.928Z INFO webdriver: RESULT null
00:01:33.674 2026-02-19T17:03:37.929Z INFO webdriver: Kill driver process with PID 821

I guess it comes from Stack/webdriverio.js? Lets check if we turn off the logging.

Details

Event Timeline

Change #1240944 had a related patch set uploaded (by Zfilipin; author: Zfilipin):

[mediawiki/core@master] selenium: Run webdriverio.js with logLevel error

https://gerrit.wikimedia.org/r/1240944

Change #1240944 merged by jenkins-bot:

[mediawiki/core@master] selenium: Run webdriverio.js with logLevel error

https://gerrit.wikimedia.org/r/1240944