[1.0.1] Sikuli finds element on secondary screen but clicks on primary screen --- fixed in 1.1.0-Beta2

Bug #1250112 reported by Christian Åkerström
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

Sikuli 1.0.1 on OSX 10.7

Ways to reproduce:
screens = list(Screen(i) for i in range(Screen.getNumberScreens()))

apple = Screen(0)
desktop = Screen(1)
samsung = Screen(2)

screen = samsung

switchApp("Google Chrome.app")
type("t", Key.CMD)
sleep(2)
screen.click("1384175538022.png") # google dots icon
screen.click("1384177981486.png") # google drive icon

Changing screen parameter to other than Screen(0) would make sikuli find the google dots picture although it would click at the border between the primary screen and the choosen screen.

My primary screen is in the middle of my three screens.
S(1) is located to the left and S(2) to the right of my primary screen.

S(1) logs:
[log] CLICK on L(-194,299)@S(1)[-1440,157 1440x900] # although clicking on leftmost border of S(0)
[error] script [ open-google-drive ] stopped with error in line 13
[error] FindFailed ( can not find 1384177981486.png on the screen. )

S(2) logs:
[log] CLICK on L(3646,142)@S(2)[1920,0 1920x1080] # although clicking on rightmost border of S(0)
[error] script [ open-google-drive ] stopped with error in line 13
[error] FindFailed ( can not find 1384177981486.png on the screen. )

Revision history for this message
Christian Åkerström (chrak533) wrote :

Tried to upload pictures but got an launchpad error

description: updated
Revision history for this message
RaiMan (raimund-hocke) wrote :

could you run the test again after starting the IDE with option -d on the startup dialog.

In your home folder there will be a Sikuli-log.txt.

Pls. send it silently to my mail at https://launchpad.net/~raimund-hocke

Revision history for this message
RaiMan (raimund-hocke) wrote :

I do not need any pictures, but include your test script all zipped together.

Revision history for this message
Christian Åkerström (chrak533) wrote :

Attached script and debug logs for S(2)

Revision history for this message
Christian Åkerström (chrak533) wrote : Re: [Bug 1250112] Re: Sikuli finds element on secondary screen but clicks on primary screen

I did not know what parts you wanted it attached to the bugs or on your
mail so I sent it on both channels.

On Mon, Nov 11, 2013 at 4:30 PM, RaiMan <email address hidden> wrote:

> I do not need any pictures, but include your test script all zipped
> together.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1250112
>
> Title:
> Sikuli finds element on secondary screen but clicks on primary screen
>
> Status in Sikuli:
> New
>
> Bug description:
> Sikuli 1.0.1 on OSX 10.7
>
> Ways to reproduce:
> screens = list(Screen(i) for i in range(Screen.getNumberScreens()))
>
> apple = Screen(0)
> desktop = Screen(1)
> samsung = Screen(2)
>
> screen = samsung
>
> switchApp("Google Chrome.app")
> type("t", Key.CMD)
> sleep(2)
> screen.click("1384175538022.png") # google dots icon
> screen.click("1384177981486.png") # google drive icon
>
> Changing screen parameter to other than Screen(0) would make sikuli
> find the google dots picture although it would click at the border
> between the primary screen and the choosen screen.
>
> My primary screen is in the middle of my three screens.
> S(1) is located to the left and S(2) to the right of my primary screen.
>
> S(1) logs:
> [log] CLICK on L(-194,299)@S(1)[-1440,157 1440x900] # although clicking
> on leftmost border of S(0)
> [error] script [ open-google-drive ] stopped with error in line 13
> [error] FindFailed ( can not find 1384177981486.png on the screen. )
>
> S(2) logs:
> [log] CLICK on L(3646,142)@S(2)[1920,0 1920x1080] # although clicking on
> rightmost border of S(0)
> [error] script [ open-google-drive ] stopped with error in line 13
> [error] FindFailed ( can not find 1384177981486.png on the screen. )
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/sikuli/+bug/1250112/+subscriptions
>

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
summary: - Sikuli finds element on secondary screen but clicks on primary screen
+ [1.0.1] Sikuli finds element on secondary screen but clicks on primary
+ screen
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
summary: [1.0.1] Sikuli finds element on secondary screen but clicks on primary
- screen
+ screen --- fixed in 1.1.0-Beta2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.