Hi ,
Can anyone please let me know how to use the set search rectangle function
I have a Text called “Done” , which is displayed in two positions on my SUT screen.
The first Position of “Done” text on screen is (436,181)
The Second Position of “Done” Text on screen is (784,198)
Iam using the following line to click on the text area, by default it is clicking on the first displayed text. ie, at (436,181)
Click (Text :“Done”,TextFont:“LucidaGrande”, Text Size:“11”,TextColor:(48,48,48),TextBackgroundColor:(218,224,228))
But my search text is a button. at (784,198)
I tried using below line of code also,
setoption SearchRectangle, ((0, 0, 784, 198))
Click (Text :“Done”,TextFont:“LucidaGrande”, Text Size:“11”,TextColor:(48,48,48),TextBackgroundColor:(218,224,228))
even then it is clicking at (436,181).
Please find attached screenshot for reference.
Can anyone help me out how exactly i can click on a text image in the even then if its displayed multiple times on the screen.
Please let me know in case of any further information needed
Thanks In Advance.