← Back to team overview

sikuli-driver team mailing list archive

[Question #218023]: Whats wrong with ELIF

 

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

        
(Excuse indentions from pasting, but what is wrong with the elif statement? Gives error..

[error] Stopped
[error] An error occurs at line 178
[error] Error message:
SyntaxError: ("no viable alternative at input ':'", ('/var/folders/-U/-UHGSbvJF+8HyAH3a2YZ+k+++TI/-Tmp-/sikuli-tmp1139829177390629941.py', 178, 12, ' elif:\n'))




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

if exists(excelEMAIL):
            rightClick(excelEMAIL)
            wait(3)
        else:
            popup("Please configure Excel Correctly")# this is because excel can't be scrolled to the right, with email section not showing 
            wait(5)
        click(excelCOPY)
        if exists(tabGMAIL):
            click(tabGMAIL)
        elif:
            click(tabGMAILblue)
        else:
            click(tabSETTINGS)
            click(settingsCLEARbrowsing)
            wait(settingsCLEARbrowsingCLEAR,20)
            click(settingsCLEARbrowsingCLEAR)
            click(exitCHROME)
            ac= App("Google Chrome")
            ac.open()
            type(",",KEY_CMD)
            click(settingsEXTENSIONS)
            click(settingsPROXYoptions)
            click(tabEXTENSTIONS)
            click(settingsSETTINGS)
            click(settingsSHOWadvanced)
            click(settingsCLEARbrowsing)
            wait(settingsCLEARbrowsingCLEAR,10)
            click(settingsCLEARbrowsingCLEAR)
            type("t", KEY_CMD)
            type("www.facebook.com")
            type(Key.ENTER)
            type("t", KEY_CMD)
            type("www.gmail.com")
            type(Key.ENTER)
            if exists(setupSUCCESS):
                click(tabPOXY)
                exit()
            else:
                popup("Configur Browser")

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.