← Back to team overview

sikuli-driver team mailing list archive

[Bug 1334129] [NEW] [request] want a function vanish() like exists()

 

Public bug reported:

***** about vanish() see related question comment #5

--------------------------------------------------

i want to wait for a image appear for only 5 sec. if appear do click

wait(image,5).click()

If not appear within 5 sec i want to some other task like exit()

how to if  a wait() like

if(wait(image,5)):
     image.click()
else:
    exit()
Ya i got the solution for appear
how to do it for wait 5 sec  for vanish if not vanished exit(1)

** Affects: sikuli
     Importance: Medium
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Description changed:

+ ***** about vanish() see related question comment #5
+ 
+ --------------------------------------------------
+ 
  i want to wait for a image appear for only 5 sec. if appear do click
  
  wait(image,5).click()
  
  If not appear within 5 sec i want to some other task like exit()
  
  how to if  a wait() like
  
  if(wait(image,5)):
-      image.click()
+      image.click()
  else:
-     exit()
- Ya i got the solution for appear 
+     exit()
+ Ya i got the solution for appear
  how to do it for wait 5 sec  for vanish if not vanished exit(1)

** Changed in: sikuli
       Status: New => In Progress

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

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

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

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

Title:
  [request] want a function vanish() like exists()

Status in Sikuli:
  In Progress

Bug description:
  ***** about vanish() see related question comment #5

  --------------------------------------------------

  i want to wait for a image appear for only 5 sec. if appear do click

  wait(image,5).click()

  If not appear within 5 sec i want to some other task like exit()

  how to if  a wait() like

  if(wait(image,5)):
       image.click()
  else:
      exit()
  Ya i got the solution for appear
  how to do it for wait 5 sec  for vanish if not vanished exit(1)

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


Follow ups

References