[error] Interrompido
[error] Um erro ocorreu na linha 10
[error] Mensagem de erro: Traceback (most recent call last):
 File "C:\Users\Sobral\AppData\Local\Temp\sikuli-tmp1117957771298089564.py", 
line 10, in 
 hover(t)
 Line 17, in file 
C:\Users\Sobral\AppData\Local\Temp\sikuli-tmp1117957771298089564.py

 at org.sikuli.script.Region.handleFindFailed(Region.java:421) 
at org.sikuli.script.Region.wait(Region.java:512) 
at org.python.proxies.sikuli.Region$Region$0.super__wait(Unknown Source) 
at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 

org.sikuli.script.FindFailed: FindFailed: can not find SIKULI on the screen.
 Line 17, in file 
C:\Users\Sobral\AppData\Local\Temp\sikuli-tmp1117957771298089564.py

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

Title:
  After sometime application stops finding text

Status in Sikuli:
  New

Bug description:
  Description

  Script works properly, but after sometime runnig it stops find text

  
  ''' Steps to reproduce'''

   - Have a the line in some part of script

              t = "SIKULI"
              m = find(t)
              hover(t)
              click(t)

   - run the script some times
   - After some time of user, sikuli doesn't find the word SIKULI anymore

  
  full script:

  
  def overtimeActivity():

      deDashboard = ("DDEDashboard.png")
      selectItemImage = ("1371671431871.png")
      
      
      try:

              find (deDashboard)
              click (deDashboard)

              while exists("Sairdestapag.png"):
                  find("Sairdestapag.png")
                  click("Sairdestapag.png")
                  wait(5)
          

          
              
              find("MyProjectLis-1.png")
              hover("MyProjectLis-1.png")
              click("IIarIlSelect.png")
              t = "SIKUL"
              m = find(t)
              hover(t)
              click(t)
          
              print("work item")
              find("WorkItemMyWo.png")
              print("achou o work")
          
              click ("WorkItemMyWo.png")
              print("passei")
          
              l = "Testing"
              z = find(l)
              hover(l)
              click(l)

              if exists("MyProjectLis.png"):
              
                  find("0000.png")
                  click("0000.png")
              
                  #input ler sobre esse comando#
                  type("0600")

                  if exists("IOvertime-1.png"):
                  
                       find ("Elc.png")                   
                       click("Elc.png")
                       wait("QOvertime.png")
                       wait(2)
                       find("AddActivity.png")
                       click("AddActivity.png")
                  else:
                      print("TEST FAILED - Hours not Reported - Problem 
'''click check box'''")
                      raise exception            
              
              else:
               print("TEST FAILED - Hours not Reported")
               log = "erro"
               logaDados(log)
               raise exception      

              if exists("DONE.png"):
             
                 print(" Test Passed")

              else:

                  print("TEST FAILED - Hours not Reported")
                  f=Screen(S)
                  print(S)
                  raise Exception
           
          
           
      except:
          print("TEST FAILED - Hours not Reported")
          raise exception

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to