@wdio/image-comparison-core@1.2.1
·
2 commits
to main
since this release
Patch Changes
-
d5afb54: ## #1129 Fix
TypeError: element.getBoundingClientRect is not a functionwhen aChainablePromiseElementis passed tocheckElementWhen
checkElement(orsaveElement) was called with aChainablePromiseElement, the lazy promise-based element reference that WebdriverIO's$()returns, the element was passed directly as an argument tobrowser.execute()without being awaited first.browser.execute()serializes its arguments for transfer to the browser context and cannot handle a pending Promise, so it arrived in the browser as a plain empty object{}instead of a WebElement reference. This causedelement.getBoundingClientRect is not a functionbecause the browser-sidescrollElementIntoViewscript received{}rather than a DOM element.Committers: 1
- Wim Selles (@wswebcreation)