Jump to content

Recommended Posts

Posted

Hi @falukky.

Use the window class: "MozillaDialogClass"

The controls does not seem to be accessible, so you would need to use ControlSend or ControlClick to activate the OK button.

So with WinActivate , Sleep and the functions above, you should be good to go.

Posted

I am using selenium to click on the link and after that i have this Firefox windows.

All i want to do is check this save file and click OK to download the file

Posted

So i have this script:

 

WinActivate("[Class:MozillaDialogClass]");
Send("{DOWN}")
Sleep(2000)
Send("{ENTER}")

 

And this works fine but the question is if this is enough 

Posted
On 9/5/2017 at 4:48 PM, falukky said:

And this works fine but the question is if this is enough 

Only you would know, right?

A suggestion would be implementing any kind of window based statement like WinExists, WinWait, WinWaitActive or maybe a hook with window creation?

Also add some kind of code checking if window focus is lost, while you wait for the OK button to be available?

But you could check the checkbox stating that you want FF to do that action automatically every time for that file-type.

Posted (edited)

Check the checkbox should be smart idea because if the checkbox is in the 'Save file' state it become 'Open With' when i press OK.

how can i check this checkbox ?

Edited by falukky

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...