get_images_similarity 呼叫失敗,提示沒有安裝 opencv4nodejs,實際已安裝

Qian Sijianhao發表於2020-08-06

折騰兩天了,python編寫測試指令碼時,呼叫self.driver.get_images_similarity失敗,報錯
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: 'opencv4nodejs' module is required to use OpenCV features. Please install it first ('npm i -g opencv4nodejs') and restart Appium. Read https://github.com/justadudewhohacks/opencv4nodejs#how-to-install for more details on this topic.
但是通過appium-doctor檢視,實際opencv4nodejs已安裝:

相關文章