- Node.js version: 15.0.0
- NPM version: 7.0.2
- Browser name and version: Chrome83
- Platform name and version: Windows 10
- WebdriverIO version: 7.16.14
- wdio-image-comparison-service version: 3.1.0
- Appium 2.0.0-beta.25 ( 1.22.2)
Config of WebdriverIO + wdio-image-comparison-service
services: [
['appium'],
['chromedriver'],
['image-comparison',
// The options
{
// Some options, see the docs for more
baselineFolder: join(process.cwd(), './test/visual test/baseline/'),
formatImageName: '{tag}-{logName}-{width}x{height}',
screenshotPath: join(process.cwd(), './test/visual test/chekc/'),
// savePerInstance: true,
autoSaveBaseline: true,
// blockOutStatusBar: true,
// blockOutToolBar: true,
isHybridApp:true
// clearRuntimeFolder: true
// Without this option, it errors out only when mismatch is above 1.23%(by default)
// ... more options
}],
],
Describe the bug
- after launch, Chrome opens on Pixel 3 (Android Studio emulator).
- URL is being navigated
- Finds a layout element.
- await browser.checkElement(await element, ‘simple’, {}) is called
- Error appears in console “browser.checkElement is not a function”
Playable for any other image comparison or image save function
Repeat for any other image comparison function or image save function
To Reproduce
start Android Emulator Pixel 3
npm i
npm test
link git https://github.com/Searcher865/wdio-with-appium-example-
I put the logs in the repository link https://github.com/Searcher865/wdio-with-appium-example-/tree/master/logs
Expected behavior
Test completed successfully. A screenshot of the element is taken and saved.
I would be very grateful for any help.