File download in robotframework using firefox browser

3,263 views
Skip to first unread message

Sweta Rahangdale

unread,
Nov 25, 2016, 6:34:30 AM11/25/16
to robotframe...@googlegroups.com
Hi All,

I am new to robot framework.I want to download the file via firefox browser.
but,I don't have idea how to handle pop-up.Any one can provide me code related to that.

Thanks,
Sweta Rahangdale

Hélio Guilherme

unread,
Nov 25, 2016, 6:42:39 AM11/25/16
to robotframework-users
A possible work around is to `Create Webdriver` using a user profile (that have set to Download files to a known path, thus not showing the pop-up).



--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Tatu Aalto

unread,
Nov 25, 2016, 6:45:24 AM11/25/16
to Hélio Guilherme, robotframework-users

Ugh

Other option is to download the file with cURL or wget type of applications.

-Tatu

-Tatu
Send from my mobile


On Nov 25, 2016 13:42, "Hélio Guilherme" <heliox...@gmail.com> wrote:
A possible work around is to `Create Webdriver` using a user profile (that have set to Download files to a known path, thus not showing the pop-up).


On Fri, Nov 25, 2016 at 10:11 AM, Sweta Rahangdale <srsw...@gmail.com> wrote:
Hi All,

I am new to robot framework.I want to download the file via firefox browser.
but,I don't have idea how to handle pop-up.Any one can provide me code related to that.

Thanks,
Sweta Rahangdale

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Sweta Rahangdale

unread,
Nov 25, 2016, 12:03:32 PM11/25/16
to aalto...@gmail.com, Hélio Guilherme, robotframework-users
Can you provide me code related to that or any helpful site which I can refer?
but,not working in my case.

Thanks,
Sweta Rahangdale

Sachin Nikam

unread,
Nov 27, 2016, 11:41:32 PM11/27/16
to robotframework-users, aalto...@gmail.com, heliox...@gmail.com
Hi Shweta,

u can use following code. U need to provide path where u want to download the files.

    from selenium import webdriver
    fp =webdriver.FirefoxProfile()
    fp.set_preference("browser.download.folderList",2)
    fp.set_preference("browser.download.manager.showWhenStarting",False)
    fp.set_preference("browser.helperApps.neverAsk.saveToDisk",'application/csv,application/text')
    fp.set_preference("browser.download.dir",path)



On Friday, November 25, 2016 at 10:33:32 PM UTC+5:30, Sweta Rahangdale wrote:
Can you provide me code related to that or any helpful site which I can refer?
but,not working in my case.

Thanks,
Sweta Rahangdale

On Fri, Nov 25, 2016 at 5:15 PM, Tatu Aalto <aalto...@gmail.com> wrote:

Ugh

Other option is to download the file with cURL or wget type of applications.

-Tatu

-Tatu
Send from my mobile

On Nov 25, 2016 13:42, "Hélio Guilherme" <heliox...@gmail.com> wrote:
A possible work around is to `Create Webdriver` using a user profile (that have set to Download files to a known path, thus not showing the pop-up).


On Fri, Nov 25, 2016 at 10:11 AM, Sweta Rahangdale <srsw...@gmail.com> wrote:
Hi All,

I am new to robot framework.I want to download the file via firefox browser.
but,I don't have idea how to handle pop-up.Any one can provide me code related to that.

Thanks,
Sweta Rahangdale

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.

Sweta Rahangdale

unread,
Nov 28, 2016, 2:28:45 AM11/28/16
to sachin....@gmail.com, robotframework-users
Hi Sachin,

Thanks for your reply.
I did same thing. I wrote a python script to set preferences for FireFox.
And used it in Robot scenario.
Attached robot and python file.

Waiting for your reply

Thanks,
Sweta Rahangdale


Sweta Rahangdale

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
WebElement.py
firefox.robot

Sweta Rahangdale

unread,
Nov 28, 2016, 2:59:29 AM11/28/16
to sachin....@gmail.com, robotframework-users
Updated robot test case.

Thanks,
Sweta Rahangdale

firefox.robot

Mrabet Sirine

unread,
Nov 28, 2016, 10:45:25 AM11/28/16
to robotframework-users, sachin....@gmail.com
Hi,
You can handle pop-up (clique to yes button) by the function 'Confirm action'
Updated robot test case.

Thanks,
Sweta Rahangdale

Sweta Rahangdale

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Sweta Rahangdale

unread,
Nov 29, 2016, 1:33:45 AM11/29/16
to mrabet....@gmail.com, robotframework-users, Sachin Nikam
Hi,

It's not work,gives error:There were no alerts.


Thanks,
Sweta Rahangdale

Updated robot test case.

Thanks,
Sweta Rahangdale

Sweta Rahangdale

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsubscrib...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.

Sweta Rahangdale

unread,
Nov 29, 2016, 5:00:41 AM11/29/16
to mrabet....@gmail.com, robotframework-users, Sachin Nikam
By setting firefox prefrences,it is working now.
Can we do same thing with IE browser?

Thanks,
Sweta Rahangdale


Thanks,
Sweta Rahangdale

Mrabet Sirine

unread,
Nov 29, 2016, 5:53:54 AM11/29/16
to robotframework-users, mrabet....@gmail.com, sachin....@gmail.com
in fact for IE you need to Download IE webdriver

Thanks,
Sweta Rahangdale


Thanks,
Sweta Rahangdale

Updated robot test case.

Thanks,
Sweta Rahangdale

Sweta Rahangdale

To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.

Mrabet Sirine

unread,
Nov 29, 2016, 9:51:59 AM11/29/16
to robotframework-users
Reply all
Reply to author
Forward
0 new messages