← Back to team overview

sikuli-driver team mailing list archive

[Bug 1705515] Re: [1.1.1 final] Screen().capture() does not return path

 

@Rainer Oehry
Thanks for confirming.
This is definitely a bug, though not the same reason as behind bug 1589474.

The newly broken API is due to a revision of the intermediate layer
between Python script level and Java API.

It will only be fixed in version 1.1.2 the next weeks.

With version 1.1.1 one has to live with the mentioned workaround.
I will put a remark into the docs.

** Summary changed:

- 1.1.1 Screen().capture() does not return path
+ [1.1.1 final] Screen().capture() does not return path

** Changed in: sikuli
       Status: Confirmed => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.2

** Summary changed:

- [1.1.1 final] Screen().capture() does not return path
+ [1.1.1 final] Screen().capture() does not return path --- workaround

** Description changed:

+ **************** workaround
+ until fixed in 1.1.2, one can use:
+ Screen().capture().getFile()
+ -------------------------------------------
+ 
  In 1.1.1 Screen().capture() returns
  "org.sikuli.script.ScreenImage@4d1ab2e0
  
  in 1.1.0 Screen().capture() returns
  "...\AppData\Local\Temp\Sikulix_1083747527\sikuliximage-1500565358268.png"
  
  Same script, just switching between 1.1.0 and 1.1.1 IDE
  
  Windows 10 Pro Version 1703 64-Bit
  
  Thanks

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1705515

Title:
  [1.1.1 final] Screen().capture() does not return path --- workaround

Status in Sikuli:
  Fix Committed

Bug description:
  **************** workaround
  until fixed in 1.1.2, one can use:
  Screen().capture().getFile()
  -------------------------------------------

  In 1.1.1 Screen().capture() returns
  "org.sikuli.script.ScreenImage@4d1ab2e0

  in 1.1.0 Screen().capture() returns
  "...\AppData\Local\Temp\Sikulix_1083747527\sikuliximage-1500565358268.png"

  Same script, just switching between 1.1.0 and 1.1.1 IDE

  Windows 10 Pro Version 1703 64-Bit

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1705515/+subscriptions


References