← Back to team overview

sikuli-driver team mailing list archive

[Bug 1536759] [NEW] [1.1.0] click(exists()) always return True

 

Public bug reported:

Hi,
Usually Im using code something like this:

if not click(exists('some_image')):
    # do some actions to make image visible
    click('some_image')

But after update to version 1.1.0 ive noticed that
click(exists('some_nonexistent_image')) always return True. Checked in
version 1.0.1 - False was returned.

Is it normal behavior? Should I wait for some fix or update my scripts
to "if exists > else" ? Or maybe im not using it right?

BTW thanks for great automation tool RaiMan )))

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

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

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

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

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

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

Title:
  [1.1.0] click(exists()) always return True

Status in Sikuli:
  Fix Committed

Bug description:
  Hi,
  Usually Im using code something like this:

  if not click(exists('some_image')):
      # do some actions to make image visible
      click('some_image')

  But after update to version 1.1.0 ive noticed that
  click(exists('some_nonexistent_image')) always return True. Checked in
  version 1.0.1 - False was returned.

  Is it normal behavior? Should I wait for some fix or update my scripts
  to "if exists > else" ? Or maybe im not using it right?

  BTW thanks for great automation tool RaiMan )))

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


Follow ups