Sunday, December 27, 2009

Selenium and Python

I have been working on Selenium at my latest project and I found that selenium of course is not capable of controlling IE dialogs such as File Download and SaveAs. So far in Python I have been able to work around this but using a combination of pyWinAuto.py,SendKeys and winGuiAuto

You have to get focus to the control, Send and Up/down mouse command and and "ENTER" command. I have know idea why it takes all those commands but it works.

I have also written a reporting tool for Selenium that show how many test have been run and the results in HTML format.

Selenium is nice if you have to automate many browsers such as IE and Firefox.

No comments:

Post a Comment