Skip to content

Installation

Jan Egermaier edited this page May 23, 2022 · 2 revisions

Install WatchUI

Pip install

For Installing WatchUI you need python >= 3.9 and pip

Installation with pip:

pip install WatchUI

In order to use library in Robot Framework just simply import library within Setting sections:

*** Settings ***
Library         WatchUI

From github (alternative)

Alternatively WatchUI can be installed by grabbing the library directly from GitHub repository. For that it is required to have installed:

If you have git, go to project folder and use in cmd:

git pull https://github.com/Tesena-smart-testing/WatchUI.git

Library needs to install some dependencies before we can use it. All required libraries can be found in the requirements.txt file within WatchUI repository and simply installed by pip:

pip install -r requirements.txt

To use it in Robot framework it need to be imported by providing full path to implementation file:

*** Settings ***
Library  <path to folder where is WatchUI.py>/WatchUI.py

Install Tesseract

Tesseract OCR need to be installed additionally to the standard installation mentioned above and it will be needed only if you need to use the keyword using the library: keywords using Tesseract OCR.

Windows

{: .list}

  • Download the latest released version of the Windows installer for Tesseract from here
  • Run the executable file to install. It will be installed to C:\Program Files (x86)\Tesseract OCR
  • Make sure your TESSDATA_PREFIX environment variable is set correctly:
    • Go to Control Panel -> System -> Advanced System Settings -> Advanced tab -> Environment Variables... button
    • In System variables window scroll down to TESSDATA_PREFIX. If it's not right, select and click Edit

Debian / Ubuntu

apt-get install tesseract-ocr

By default Tesseract will install the English language pack, to install additional languages run:

apt-get install tesseract-ocr-LANG

where LANG is language.

Clone this wiki locally