Browser Automation: Python + Firefox using PyXPCOM

I tried the Pamie browser automation library for an Internet explorer. It interacts with IE using COM, pretty neatly:

import PAM30
ie = PAM30.PAMIE("http://user-agent-string.info/")
ie.clickButton("Analyze my UA")

Now I would like to do the same using PyXPCOM with similar flexibility in Firefox. How can i do this? Can you provide some sample code?

update: please only pyxpcom

+5
source share
3 answers

I used webdriver using firefox. I was very pleased with this.

Regarding the sample code, this will help you get started.

+10

PyXPCOM , XPCOM, . , , PyXPCOM , , :

, XPCOM . , Mozilla/Firefox COM - .

"" , " Mozilla xpcom" , ,

Webdriver, Windmill, MozMill, Firefox/Gecko/XULRunner Python.

+4

If you are testing webapp and want to write Python for this, check out Selenium RC so you can use the same API for all browsers.

+2
source

All Articles