LVPrasad

MozillaDialogClass

4 posts in this topic

Hi All,

Need help in below scenarios, please

I have a scenario in my application when i click on download button from my application (firefox browser) a dialog box shows up to open or to save options and ok, close buttons.

when i Spy on the Mozilla download dialog it didn't capture anything, please find the attached screenshot. 

if possible can someone please guide me how to work on this.

i wanted to:

click on save radio button then click on ok button.

AutoIT.png

Share this post


Link to post
Share on other sites



1 minute ago, LVPrasad said:

Hi All,

Need help in below scenarios, please

I have a scenario in my application when i click on download button from my application (firefox browser) a dialog box shows up to open or to save options and ok, close buttons.

when i Spy on the Mozilla download dialog it didn't capture anything, please find the attached screenshot. 

if possible can someone please guide me how to work on this.

i wanted to:

click on save radio button then click on ok button.

AutoIT.png

 

Share this post


Link to post
Share on other sites

please don't bump threads in less than 24 hours!

 

Anyway, Firefox enables the "OK" button after you select the window.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

Hello. You can do something like this.

 

#RequireAdmin

;Your download rutine here then
_WaitAndClick()

Func _WaitAndClick()
     WinWait("[CLASS:MozillaDialogClass]", "", 10)
     WinActivate("[CLASS:MozillaDialogClass]")
     Send("{DOWN}")
     Sleep(1000)
     Send("{ENTER}")
EndFunc

Saludos

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