How to verify text or symbols inside a Region (e.g. taskbar)

Asked by isivay2kx

Hi,

Is there any commands to verify the text in the screen.
Is there any commands to verify the image is presented in the screen.
After installing the software i just want to verify like installtion successfull or not.I have given the following suggestions.
1) verify the text filename in control panel add/or remove programes.
2) verify the image in all programs and particular filedirectory.

Can you please give suggestions for above commands and above solution.

Thanks in Advance
Siva

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

already looked at the docs and examples?

- you can read text in the control panel after having it opened manually or by Sikuli script (Region.text())

- you can verify images that are visible on screen (basic Sikuli feature Region.exists()). Again you have to somehow open the respective windows either by hand or using Sikuli script.

Revision history for this message
isivay2kx (isivay2kx) said :
#2

Hi,

I have given like Region.exists("Screen Image"). But its failing while running in sikuli
Can you please give the example of how to check for Region.text().

I tried like find(text) in the screen. Is it ok for validation??

Can you please give suggestions for checking the images in the screen like taskbar and quicklaunch with Region.

Thanks in Advance.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

To get a basic understanding, you have to look at the docs and examples.

Region.exists() will not run, that is clear, it was only a reference to the related feature (look for something inside a region and not on the whole screen)

taskbar/quicklaunch: to access it with Sikuli it has to be visible all the time.
Supposing, your taskbar has a hight of max 50 pixel, you can check the existence of a symbol (whose image you have captured before) and click it like this:

symbol = "filename-of-a-captured-symbol"
m = SCREEN.below(1).above(50).exists(symbol)
if m:
   click(m)
else:
   print symbol, "not found"

SCREEN.below(1).above(50) defines a new region at the bottom of the screen of heigth 50 - your taskbar.

Can you help with this problem?

Provide an answer of your own, or ask isivay2kx for more information if necessary.

To post a message you must log in.