Thursday, March 01, 2007

LoadError: no such file to load — selenium

LoadError: no such file to load — selenium. This kind of error message can happen if you have installed anything as a gem but you have not specified require "rubygems" as the first statement in your program.

12 comments:

Dan said...

Thanks for this... it saved me a bit of head-scratching!

fuzzy said...

thanks as well. the silly little selenium example page doesn't have this and I went crazy for a while. kinda dumb on me - oh well. thanks again.

Yuen-Chi Lian said...

Thanks. I was bugged by this for 15 minutes. :-)

- yc

Swamy said...

Thanks. This was bugging me too.

Dallas said...

Props. That had me stumped actually. irb worked, running the .rb in ruby didn't. Solved it nicely. Thanks!

Neha said...

I had to do a gem install selenium-client to get rid of this error. The docs page for installation of selenium on rails >= 2.1 does not mention this

Forrest said...

Just wanted to post a polite "thank you" -- I'm learning ruby, and this one had me up late. :-)

the_chris_2002 said...

Same here, Thanks :)

warsha said...

Thanks a lot...it helped me out:)

falker911 said...

You saved me, thanks.

Abhi said...

This was useful. Thanks!

Kevin King said...

Thanks for posting the tip, quick and to the point - oh, and it worked.