Can we use image comparison (findElementByImage) with WinAppDriver

%3CLINGO-SUB%20id%3D%22lingo-sub-1617943%22%20slang%3D%22en-US%22%3ECan%20we%20use%20image%20comparison%20(findElementByImage)%20with%20WinAppDriver%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1617943%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EImage%20comparison%20for%20mobile%20app%20with%20Appium%20is%20working.%20if%20using%20WinAppDriver%20for%20Windows%20application%2C%20can%20we%20still%20use%20image%20comparison%20like%26nbsp%3BfindElementByImage%3F%20if%20yes%2C%20how%20can%20we%20set%20it%20up%3F%20Thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fkobiton.com%2Fbook%2Fchapter-14-image-comparison-using-appium%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fkobiton.com%2Fbook%2Fchapter-14-image-comparison-using-appium%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1617943%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Visitor

Hi, 

Image comparison for mobile app with Appium is working. if using WinAppDriver for Windows application, can we still use image comparison like findElementByImage? if yes, how can we set it up? Thanks.

 

https://kobiton.com/book/chapter-14-image-comparison-using-appium/

1 Reply
Highlighted

@NicoleJohnson
Hi Nicole,

 

The Kobiton book also inspired me to try using image locators with WinAppDriver. Thanks to recent enhancements to Appium and WinAppDriver, now we can! 

I created a quick example on Github (which I will continue to expand) to demonstrate how to use findElementByImage with WinAppDriver. Please try it out; I welcome suggestions and feedback.
https://github.com/leobooth/WinAppDriver-Appium-CalculatorTest 


Thanks,
@leobooth