findAll

Asked by Jeff_Vallis

Have a script that imports another Script
e.g
Settings.MoveMouseDelay = 0
import Sub_Login
def Open_User():
    global Sub_Login
    global ThisLogin
    global ThisPassword
    global ThisServer
    global ThisUser
    global Open_Which_App
    global result
    print "Open_User() ======== Import Sub_Login.Sub_Run_Single_Login"
    result = 0
    result = Sub_Login.Sub_Run_Single_Login(ThisLogin,ThisPassword,ThisServer,ThisUser,Open_Which_App)
    print "Open_User() ======== Import Sub_Login.Sub_Run_Single_Login result ",result

I added this call to find out when my script failed
if I set the variables and call - Open_User() the scripts
           Loads browser
           Enters Login Details
          looks for an image to click - finds image and logs in { image = if exists("1433762728604-2.png",5): }

The Problem - I need to use findAll to determine what the variables are

if I use findAll then set the variables (using the same as above) and call - Open_User() the scripts
           Loads browser
           Enters Login Details
          looks for an image to click - Fails to find the above image { image = if exists("1433762728604-2.png",5): }

My uneducated conclusion is that findAll is someway corrupting the script

Is there any debug that I could add to help in finding out what is happening

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Jeff_Vallis
Solved:
Last query:
Last reply:

This question was originally filed as bug #1531164.

Revision history for this message
RaiMan (raimund-hocke) said :
#1

should start as question

Revision history for this message
RaiMan (raimund-hocke) said :
#2

--- not valid Python:
image = if exists("1433762728604-2.png",5):

--- I cannot see any findAll used in the code

Revision history for this message
Jeff_Vallis (vallis-pj) said :
#3

my bad
to get the correctresults in findall I had to set Settings.MinSimilarity
I changed it back now after the findall and the subrouine worked fine