sl_alagappan

Script not continuing when ""File Select to Upload" is open

1 post in this topic

#1 ·  Posted (edited)

Hi Everyone,

I have a script whereby I could launch a browser application to open a browser based app. I could open a window with Title "Choose File to upload".   I have commands to send some text to the "File Name" edit where I want to send/paste a network path from where I want to upload a specific file.

Unfortunately, the script does not move further and waits for user action. i.e. unless I cancel the "Choose File to upload" or select a file, the script does not continue to move to next line.

For example, in below script, the 3rd line opens the "Choose file to Upload" window but I do not see the message box which I have mentioned in 4th line. But once I cancel the "Choose file to upload" window, I see the message box.

 

    $oForm = _IEFormGetObjByName ($oIE, "fileSelectForm")  
    $oButton = _IEFormElementGetObjByName($oForm, "file")
    _IEAction ( $oButton, "click" )
    MsgBox($MB_OK,"in file load window","test")

 

Any tips how to get the script continue while the "Choose file to Upload" is open?

Thanks in advance for your help.

Edited by sl_alagappan

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now