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.
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.
Does the popup window is different from other's in firefox add-on?
I have found that if I use get_all_window_titles, it can not get the window of the new popup.
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.
In fact, it is a plugin not from firefox add-on, but written by ourselves. We want to test that the download function is correct in our way. If we just put the plugin into the folder of firefox, it will ignore some checkpoints of the testing process.
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
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/
