On Wed, Jul 28, 2010 at 10:59 PM, niartseoj <[email protected]> wrote:
> when i run these commands in IRB
> (...) works
> but i'm getting this when try to run it in a file

If it works in IRB and not when you run the file, maybe the problem is in
timing. When in IRB, browser has the time to load the page because you
execute commands with a few seconds of delay. Try adding some sleeps to the
file.

Example:

browser.goto url
sleep 1 # or and other number

If that works then read this:

http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: [email protected]
To unsubscribe: [email protected]

Reply via email to