← Back to team overview

sikuli-driver team mailing list archive

[Question #280606]: findAll

 

New question #280606 on Sikuli:
https://answers.launchpad.net/sikuli/+question/280606

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

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.