Željko Filipin's Blog on Software and Testing

Test like you do not need the money.

Archive for February, 2008

Real Programmers Code in Binary

with one comment

Real Programmers Code in Binary

From Corey Goldberg’s blog.

Please notice the comment. :)

Looks like that keyboard has one key too many.

Written by Željko Filipin

February 28th, 2008 at 11:41 am

Posted in Humour

Would My Watir Tests Run With Firewatir?

with 7 comments

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:

  1. 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”.
  2. 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.

Written by Željko Filipin

February 19th, 2008 at 5:00 pm

Posted in Watir

Watir and Pop Ups

with 3 comments

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.

Written by Željko Filipin

February 7th, 2008 at 2:16 pm

Posted in Watir