Been scouring the net for something like firewatir but for python. I'm trying to automate firefox on linux. Any suggestions?
Mozilla Firefox is one of the most widely used browsers in the world. It has enhanced features and is supported by a multitude of the latest testing tools and techniques. One such tool is Selenium. Selenium uses Firefox Driver to link the test cases with the Firefox browser.
You could try selenium.
The PyXPCOM extension is one possibility.
But looking at what firewatir provides, I have to 2nd the suggestion for twill. It's based on mechanize, which might also be useful in this context.
I use Selenium RC. All my tests are written in Python and are run with test suite.
One minor thing is that You either have to start selenium manually and point Your tests to it or start selenium from test suite which requires little bit of coding. But it's doable.
Generally I'm very pleased with this solution.
See if twill can help you. It can be used as a command line tool or as a python library.
I would suggest you to use Selenium instead of Mechanize/Twill because Mechanize would fail while handling Javascript.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With