This answer assumes that you have ruled working on the DOM level with selectors.

So if you want to do visual , I see several options:

(1) If you are not tied to , use the free Kantu web testing tool, which works visually, just the way you want it to work. It has built-in OCR. At the very least, you can use this tool test if the visual testing approach itself is the right one for your test case – before spending much time to get Selenium to work this way.

If Selenium:

(2) for use with Selenium: Go for an online ocr solution, it will be much easier to use than implementing Tesseract. Here is some Java code to use it.

(3) Maybe you do not need OCR, but “only” image recognition? In this case Selenium + Sikuli is an option.



Source link https://sqa.stackexchange.com/questions/29347/how-to-use-ocr-in-selenium-to---

LEAVE A REPLY

Please enter your comment!
Please enter your name here