Forum Discussion
lalit_chand
15 years agoOccasional Contributor
Alex , thanks for your help.
I executed the below scipt
[VBScript]
set iexplore = Aliases.Sys.Process("iexplore", 2)
set obj =iexplore.Window("#32770", "File Download").Window("Button", "&Save")
If (obj.Exists) Then
call BuiltIn.delay(1000)
Log.Message (obj.VisibleOnScreen)
Call obj.SetFocus
call BuiltIn.delay(1000)
Log.Message (obj.VisibleOnScreen)
obj.Keys("[Enter]")
Else
Log.Message "Not found"
end if
Here is the log of this script
[Log ]
False 3:55:41
The window got focus. 3:55:41
True 3:55:42
Keyboard input. 3:55:43
I am just curious to know why following things are happening
1. obj.VisibleOnScreen is false initially but this property evaluates "true" after button got focused
2. I found that "Save" button is no getting Keyboard input(here it is ENTER) , instead "Cancle" is getting that.
Thanks,
Lalit
I executed the below scipt
[VBScript]
set iexplore = Aliases.Sys.Process("iexplore", 2)
set obj =iexplore.Window("#32770", "File Download").Window("Button", "&Save")
If (obj.Exists) Then
call BuiltIn.delay(1000)
Log.Message (obj.VisibleOnScreen)
Call obj.SetFocus
call BuiltIn.delay(1000)
Log.Message (obj.VisibleOnScreen)
obj.Keys("[Enter]")
Else
Log.Message "Not found"
end if
Here is the log of this script
[Log ]
False 3:55:41
The window got focus. 3:55:41
True 3:55:42
Keyboard input. 3:55:43
I am just curious to know why following things are happening
1. obj.VisibleOnScreen is false initially but this property evaluates "true" after button got focused
2. I found that "Save" button is no getting Keyboard input(here it is ENTER) , instead "Cancle" is getting that.
Thanks,
Lalit