zinserjan / wdio-visual-regression-service

Visual regression service for WebdriverIO.
MIT License
102 stars 39 forks source link

Wdio-visual-regression-service fails to execute against native apps #51

Open kirksl opened 7 years ago

kirksl commented 7 years ago

Wdio-visual-regression-service fails to recognize extended commands and execute against native apps. Based on the error output below it appears that only web browsers may be supported? My setup is webdriverio 4.7.1 and wdio-visual-regression-service 0.8.0.


browser.checkViewport is not a function browser.checkDocument is not a function browser.checkElement is not a function

[12:19:53] COMMAND POST "/api/appium/wd/hub/session/d8ec18d2-e4e9-44dc-8b27-bcdfd6b22d83/execute" [12:19:53] DATA {"script":"return (function getUserAgent() {\n return window.navigator.userAgent;\n}).apply(null, arguments)","args":[]} [12:19:53] COMMAND GET "/api/appium/wd/hub/session/d8ec18d2-e4e9-44dc-8b27-bcdfd6b22d83/screenshot" [12:19:53] DATA {} [12:20:01] RESULT "iVBORw0KGgoAAAANSUhEUgAACgAAAAWgCAYAAACSABrfAACAAElEQVR4AezBeXRc9Znw+e9z761SbZKqtJd2S7Ityfu+YeTYAgMGQoclJCEkMbGTTM50z3SnJzNzOulp3j Nn3u73v+nznu4EcE9DIIEEAmENYAwmMbZBmJjFNniRZcuWF1m7qlRV9/5manJ0onYbb9j ... (1533650 more bytes) [12:20:01] Saved screenshot: ERROR__2017-08-16T19-19-53.254Z.png

ghost commented 6 years ago

I too have this problem - did you manage to resolve this?

ghost commented 6 years ago

@kirksl resolve this by switching to web context (this can be done automatically in appium)