« home

Known Hosts Issue With Net::SSH

This issue bit me twice within a month, and each time I had to spend a couple of hours to figure out the cause of the problem, mostly due to the obscurity of the error messages. So I was using net-ssh-2.0.15 and jruby-openssl-0.5.1 for a piece of code that’s supposed to perform some remote operations. The Net::SSH usage itself was straightforward… Net::SSH.start(@host, @username, :keys => @keys) do |ssh| ... end When I ran the above snippet on Windows XP, it gave this error message without any further information… The system cannot find the path specified Not exactly helpful, eh?…

more »

Image Saving In Watir

So I got the chance to use Watir again on a short project at work. The last time I used it was about 1.5 years ago, and I was glad to find out that Watir is still a nice library to use. Watir simply works without much hassle. The only issue I had was with image saving. From Image class documentation (Watir 1.6), it wasn’t obvious that save can only be called when image element is directly contained within a browser element.…

more »