If you think this is a bug, report it here:

https://github.com/watir/watir-classic/issues

Željko


On Thu, Jan 31, 2013 at 9:00 AM, Ste <[email protected]> wrote:

> Hi Željko,
>
> the Ruby code write a number in the textbox id="ctl00_NetWor_txtNumber"
> and onchange event open a modal dialog. Executing manually the statements
> at lines 1), 4), 5) form IRB I dont' have errors. Executing Ruby I get
> error at line 4)
>
> This is the relevant HTML
>
> <input name="ctl00$NetWor$txtNumber" class="100"
> id="ctl00_NetWor_txtNumber" style="text-transform: uppercase;"
> onmouseover="GetTooltip(this, true)" onkeypress="if
> (WebForm_TextBoxKeyHandler(event) == false) return false;NumericValue()"
> onfocus="className='100_focus'" onblur="className='100'"
> onchange="openDecour();setTimeout('__doPostBack(\'ctl00$NetWor$txtNumber\',\'\')',
> 0)" onbeforedeactivate="if (typeof(Valid) !== 'undefined') Valid();"
> type="text" _events="[object Object]" profile="class:txt_i_number"
> AllowFloat="false"/>
>
> This is the relevant Ruby
>
> 1) @ie.text_field(:id,'ctl00_NetWorCPH_txtNumber').set_no_wait(aNumber)
> 2) sleep $user_waiting_time
> 3) Watir::IE.attach_timeout = $timeOut
> 4) @ie.wait_until($wating_until_time) {@ie.modal_dialog.exist? and
> @ie.modal_dialog.button(:id,'btnConfirm').exist? }
> 5) @ie.modal_dialog.button(:id,'btnConfirm').click
>
> Thanks in advance
>
> Stefano
>
> Il giorno mercoledì 30 gennaio 2013 22:08:37 UTC+1, Željko Filipin ha
> scritto:
>
>> On Wed, Jan 30, 2013 at 5:41 PM, Ste <[email protected]> wrote:
>>
>>> From IRB, the same commands still continuos to work fine
>>
>>
>> Please share relevant HTML and Ruby code.
>>
>> Željko
>>
>  --
> --
> 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]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to