Archive for February, 2008
Real Programmers Code in Binary

From Corey Goldberg’s blog.
Please notice the comment.
Looks like that keyboard has one key too many.
Would My Watir Tests Run With Firewatir?
I saw this question at watir-general.
Short story is, there is no simple solution at the moment. I am just porting my tests from Watir to Firewatir and I have noticed two major differences:
-
Firewatir does not see page text the same way as Watir does:
- Watir would see “logged in as name”.
- Firewatir would see “logged in as\n\nname”.
-
Firefox sees relative urls in links, while Internet Explorer sees apsolute paths:
- Watir would see “page.htm”.
- Firewatir would see “domain.com/page.htm”.
I created a separate branch of my tests for Firewatir, until I see what should be changed in original tests to make them compatible with both Watir and Firewatir. If I can not make them work at both, I do not think that maintaining two branches will be much work.
If you are using id’s for identifying page elements, I think most of your test should work.
Watir and Pop Ups
I am updating Watir Tutorial for a while now. It is still not done. At the moment, I am at the Pop Ups page. I have gathered data from Jonathan Kohl’s excellent user guide, Paul Rogers’ excellent pop ups article and Watir FAQ. I will continue to do that, but I need help.
At the moment I have found solutions for 4 types of pop ups: new browser windows, file uploads, JavaScript pop ups and security alerts. 4 types are not covered yet: modal dialogs, modeless dialog, basic authentication and file downloads.
Since pop ups are source of problems for lots of Watir users, I would really appreciate any help. If you have working code, ideas or just a little time to review what I have done, please do it. Tutorial is just a bunch of wiki pages that anybody can edit and comment. If you need help with wiki, please let me know.
