ocrGetText
获取图像上的文本。
使用方法
const result = await browser.ocrGetText();
console.log("result = ", JSON.stringify(result, null, 2));
输出
结果
result = "VS docs API Blog Contribute Community Sponsor v8 *Engishy CV} Q OQ G asearch Next-gen browser and mobile automation Welcome! How can | help? i test framework for Node.js Get Started Why WebdriverI0? View on GitHub Watch on YouTube"