Browser Authentication Window and DEDENT error
I am typing to open up firefox and access a web page that required me to login via windows authentication.
I can't type in the username and password when the authentication dialog come up.
I seem to have a problem making sure that the popup authentication window get focus for the type command.
Any suggestions?
[error] Stopped
[error] An error occurs at line 8
[error] Error message: SyntaxError: ("mismatched input '' expecting DEDENT", ('C:\\Users\
def myHandler(event):
# event: can be any variable name, it references the SikuliEvent object
sleep(1)
#type("a", KEY_CTRL) # Select full UserName field
type(
#Setup the handler to deal with browser authentication window
onAppear(PICTURE OF AUTHENTICAION REQUIRED WINDOW , myHandler) # or any other onEvent()
myApp = App("Firefox")
if not myApp.window(): # no window(0) - Firefox not open
wait(4)
myApp.focus()
wait(5)
type("l", KEY_CTRL) # switch to address field
type("https:/
observe(10) #Observe to 10 sec
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: