Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Selecting a Radio Button by its value in firefox downlaod dialog box

$
0
0
Hi Guys,

Im using selenium+autoit tool for automating web apps and currently i got stuck up with this,

i need to download files from firefox download dialog box in which it contains two radio buttons one is Open with and another is save.
I tried using

Send("{DOWN}") // moving to save file dialog box
Sleep(4)
Send("{TAB}")
Sleep(4)
Send("{TAB}")
Sleep(4)
Send("{TAB}") //moving to OK Button
Sleep(4)
Send("{ENTER}") //to save file.

The above combination doesnot work fine at all times,sometimes by default the save file radio button is checked which makes my auto it script fail in saving files.


So,I need to click the radio button SAVE or OPEN WITH after checking its using its value
ex.,
if Value(RadioButtonchecked ="OPENWITH"
check Save Radio Button
click ok to save the file.

if value(radioButton2="save")
clcik OK to save the file.


Help will be appreciated highly.
Thanks in Advance.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>