10.31.07
Posted in E-mail, Ruby at 9:00 am by Željko Filipin

I have been using TMail for testing e-mail functionality of web application that I test for a long time. But, development of that library stopped at 2004. Today I found out that it is again in development. Take a look at it’s web site and RubyForge project site.
Permalink
10.30.07
Posted in Books, Ruby at 11:27 am by Željko Filipin

Long long time ago, I was reviewer of Brian Marick’s Everyday Scripting with Ruby. On February 2, 2007 Pragmatic Programmers said they would send me a free copy, but it did not arrive for a long time. I exchanged a few e-mails with them, and today the book arrived. I did not even have time to unwrap it yet. 
Permalink
10.25.07
Posted in Ruby at 3:27 pm by Željko Filipin
I want to delete a file from Application::Mail.download. The problem is that inside Application module, File.delete calls Application::File.delete.
Run this code and you will get error message:
Exception: undefined method `delete' for Application::File:Class
I could rename Application::File to something else, but I created Application module because I wanted to name my classes as I wish without conflicts with Ruby classes.
One solution is to specify that I want to call IO::File.delete.
But then I get this warning:
warning: toplevel constant File referenced by IO::File
How to ignore warning thread at ruby-forum.com provided the solution to removing warning. Add this at the beginning of the file:
But, I want to see other warnings. I know I can change the value of $VERBOSE to nil just before I call IO::File.delete and then change it back. That just feels wrong. Why am I getting that warning after all? Why do I get the warning after calling IO::File.delete? Am I doing something wrong?
Permalink
10.23.07
Posted in Watir at 4:45 pm by Željko Filipin
Bug fixes and minor cleanup.
Read more at Watir wiki.
Permalink
10.18.07
Posted in Ruby at 9:00 am by Željko Filipin
Permalink
10.17.07
Posted in Bugs at 5:08 pm by Željko Filipin
I have ported Support for XPATH in Watir by Angrez Singh to wiki format. Take a look: XPath Support.
I was trying example from What to do for elements not having class in Watir section and for this HTML:
Watir always returned nil:
I asked Angrez am I doing something wrong and he replied to check if generated HTML (that is rendered in the browser) is the same as source HTML.
Brilliant!
There seems to be a bug in Internet Explorer 7 (IE). If you create HTML file with above HTML (only that code, do not add anything else) IE puts map tag inside head tag.

Firefox 2 puts it inside body tag, of course.

The workaround is to put map tag explicitly inside body tag.
Permalink
10.16.07
Posted in Watir at 11:09 am by Željko Filipin
Woo hoo! Done! (For now.)
wiki.openqa.org/display/WTR/Tutorial
Permalink
10.15.07
Posted in E-mail at 9:00 am by Željko Filipin
I have really bad memory. I have to write this down. I just know I will forget it, but need it later.
I had to find out why one user did not receive any mail from us. I tried the usual things, but all looked fine. My developer suggested to troubleshoot it with telnet. I found good article about troubleshooting SMTP issues. What I did:
- open command prompt
- find server
>nslookup -querytype=MX [domain]
…
Non-authoritative answer:
[domain] MX preference = [integer], mail exchanger = [subdomain].[domain]
…
- connect to that machine with telnet
>telnet [subdomain].[domain] 25
-
good
220 SMTP Proxy Server Ready
-
not so good
554 Transaction Failed Listed in connection control deny list
Permalink
10.14.07
Posted in Humour, Watir at 9:20 am by Željko Filipin
Do not trust me, see it for yourself: Selenium is better than Watir.
Permalink
10.13.07
Posted in Humour at 9:00 am by Željko Filipin
Great comic. Via Rosie Sherry’s delicious account.
Permalink
« Previous entries