6 Replies Last post: Sep 2, 2009 4:32 AM by Merike  
Gu Zhongshu Beginner 3 posts since
Jul 10, 2009
Currently Being Moderated

Jul 10, 2009 2:33 AM

How to automate the process of install firefox add-on?

Hi all:

         I am newbie to selenium and want to use it to automate the process of install firefox add-on.

         After click to install the add-on, it will trigger a window to ask whether you want to install now. How to focus on this window and click the "install now" button using selenium rc? I have tried the wait for pop up, but it does not work this way. And I also don't know what is the window id for the wait_for_pop_up.

         Thanks in advance.

Paul Grandjean Hero 543 posts since
Feb 4, 2008
Currently Being Moderated
1. Jul 10, 2009 3:59 AM in response to: Gu Zhongshu
Re: How to automate the process of install firefox add-on?

that's an interesting idea.  I doubt Selenium can do that though.  Selenium isn't designed to run the browser.  It's designed to run the application within the browser.

Merike Beginner 6 posts since
Jul 10, 2009
Currently Being Moderated
3. Jul 10, 2009 4:22 AM in response to: Gu Zhongshu
Re: How to automate the process of install firefox add-on?

If you're already using rc then I'd do it programmatically. Installed Firefox addon is just folder inside Firefox profile. So you could copy addon  folder there and then start the browser.

Santiago Suarez Ordoñez Almighty 998 posts since
Aug 7, 2008
Currently Being Moderated
5. Jul 10, 2009 8:26 AM in response to: Gu Zhongshu
Re: How to automate the process of install firefox add-on?

Hm, it doesn't seem like something that can be done using selenium.

I'd think of grabing the URL and using an HTTP lib to ensure it's not

a 404, that should be enough. Now, if you want to ensure it actually

installs in Firefox, that probably wont worth the automation effort...

 

Saludos

Santi

Merike Beginner 6 posts since
Jul 10, 2009
Currently Being Moderated
6. Sep 2, 2009 4:32 AM in response to: Gu Zhongshu
Re: How to automate the process of install firefox add-on?

In case someone else wants to test installation of their addon in the future, there's Mozmill that can be used.

See https://developer.mozilla.org/en/Mozmill and http://hg.mozilla.org/qa/mozmill-tests/

More Like This

  • Retrieving data ...