Is it inside of a frame?

Jarmo

On Aug 24, 6:12 pm, GJHmf <[email protected]> wrote:
> Hi,
>
> I've tried replying to a previous thread entitled 'text_filed
> validation - onchange alert window Options' but it wouldn't permit me.
> So I'm opening a new thread as I have a similar issue.
>
> I am trying to write a test script to automate a text_field that calls
> a javascript function to validate the value entered in the text_field.
>
> <input type="text" style="width: 27px;" onkeypress="editchanged(1)"
> onblur="return checkRange()" onkeydown="input_numeric(event)"
> id="txtFoo" value="0" name="txtFoo" maxlength="2">
>
> If the value entered is an invalid one, then an alert window pops up
> displaying an error text on it.  I want to get a handle of that popup
> and verify the text on the alert window and hit on OK button.
>
> The original thread suggested searching for details about requiring in
> a 'set_no_wait' method, which I have done with no success:
>
>   1) Error:
> test_00_ValidationDaily(WRSystemSetupSchedules):
> NoMethodError: undefined method `eval_in_spawned_process' for
> #<Watir::Frame:0x3ecfc70>
>     C:/Ruby187/lib/ruby/gems/1.8/gems/watir-2.0.1/lib/watir/element.rb:
> 450:in `method_missing'
>     C:/Ruby187/lib/ruby/gems/1.8/gems/watir-2.0.1/lib/watir/contrib/
> set_no_wait.rb:8:in `set_no_wait'
>
> Does anyone have a solution that I may try?
>
> Thanks,
>
> GJHmf
>
> Environment: Ruby 1.8.7 / Watir 2.0.1

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to