Page MenuHomePhabricator

Selenium: Request failed due to Error: wb-ui-event-emitting-button--disabled not clickable
Closed, ResolvedPublicBUG REPORT

Description

e.g. https://integration.wikimedia.org/ci/job/quibble-vendor-selenium-docker/5252/consoleText

Not sure what's going on and why it isn't failing.

2020-03-04T14:22:09.083Z ERROR webdriver: Request failed due to Error: unknown error: Element <a tabindex="-1" role="button" aria-disabled="true" title="Save changes" class="wb-ui-event-emitting-button wb-ui-event-emitting-button--primaryProgressive wb-ui-event-emitting-button--size-L wb-ui-event-emitting-button--squary wb-ui-event-emitting-button--disabled">...</a> is not clickable at point (696, 240). Other element would receive the click: <div class="wb-ui-processdialog-header wb-db-app__header">...</div>
  (Session info: chrome=73.0.3683.75)
  (Driver info: chromedriver=73.0.3683.75,platform=Linux 4.9.0-11-amd64 x86_64)
    at getErrorFromResponseBody (/workspace/src/extensions/Wikibase/client/data-bridge/node_modules/webdriver/build/utils.js:124:10)
    at Request._callback (/workspace/src/extensions/Wikibase/client/data-bridge/node_modules/webdriver/build/request.js:111:64)
    at Request.self.callback (/workspace/src/extensions/Wikibase/client/data-bridge/node_modules/request/request.js:185:22)
    at Request.emit (events.js:189:13)
    at Request.EventEmitter.emit (domain.js:441:20)
    at Request.<anonymous> (/workspace/src/extensions/Wikibase/client/data-bridge/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:189:13)
    at Request.EventEmitter.emit (domain.js:441:20)
    at IncomingMessage.<anonymous> (/workspace/src/extensions/Wikibase/client/data-bridge/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:277:13)
    at IncomingMessage.emit (events.js:194:15)
    at IncomingMessage.EventEmitter.emit (domain.js:441:20)
    at endReadableNT (_stream_readable.js:1103:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

That run seemed to have succeeded overall:

Finished: SUCCESS

The error comes from wdio itself when trying to click the disabled button to ensure it is disabled. We catch the error in the code logic and have the test pass, but we can't prevent the error being logged to the output.
Or we couldn't back then. As Lucas recently discovered, there seems now to be a isClickable() method, that might make actually clicking the disabled button unnecessary.

Change 593548 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/Wikibase@master] bridge: use isClickable()

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

Change 593548 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] bridge: use isClickable()

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