[🐛 Bug]: TypeError: invalid 'instanceof' operand window.ShadowRoot
in Firefox 55 + IE11
#11705
Closed
3 tasks done
Labels
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
8.23.2
Node.js Version
20.9.0
Mode
Standalone Mode
Which capabilities are you using?
What happened?
I'm upgrading alphagov/accessible-autocomplete from
webdriverio@7.33.0
towebdriverio@8.23.2
But I'm now getting errors in Firefox 55 and Internet Explorer 11 using
.waitForExist()
TypeError: invalid 'instanceof' operand window.ShadowRoot
It appears to come from the check on line 94 in scripts/isElementDisplayed.ts
webdriverio/packages/webdriverio/src/scripts/isElementDisplayed.ts
Lines 91 to 96 in e233109
Where perhaps the fix in 410ea50 didn't go far enough to guard
undefined
globals in IE11?I'd be happy to open a PR
Log output is public below:
SauceLabs via
webdriverio@7.33.0
https://github.com/alphagov/accessible-autocomplete/actions/runs/6935370100/job/18865380147
SauceLabs via
webdriverio@8.23.2
https://github.com/alphagov/accessible-autocomplete/actions/runs/6935148161/job/18864740081?pr=612
What is your expected behavior?
Calls to
.waitForExist()
to succeed in Firefox 55 and Internet Explorer 11How to reproduce the bug.
This bug report was recreated from alphagov/accessible-autocomplete#612
I've cloned the branch to
package-updates-bug-report
with the following commits:webdriverio@7.33.0
via alphagov/accessible-autocomplete@927b0fawebdriverio@8.23.2
via alphagov/accessible-autocomplete@9637469With the following minimal example extracted from test/integration/index.js
Relevant log output
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: