On Sunday, June 10, 2012 7:43:34 AM UTC-7, sivam wrote:
>
> Hi,
>
> I have tried with the following code to handle the prompt window.
>
> ie.frame(:index, 3).link(:id,'PROJECT_ACTIVITIES$hfind$0').click_no_wait
> ie.execute_script("window.prompt = function() {return 'my name'}")
>
>
> But it is not catching that window. Simply it gets closed after getting
> the prompt window.
>
> On Sat, Jun 9, 2012 at 11:01 PM, Željko Filipin
> <[email protected]>wrote:
>
>> On Sat, Jun 9, 2012 at 7:27 PM, sivam <[email protected]> wrote:
>> > Hi the details on the below link is also not working
>>
>> "Not working" does not tell me anything. You will have to provide more
>> data.
>>
>> Ž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]
>>
>
Watir-Webdriver has added a brand new way to deal with alerts. You can
see the spec for it here
https://github.com/watir/watir-webdriver/blob/master/spec/alert_spec.rb
It should be pretty simple to deal with it using the new alert methods,
there's a test in there that shows setting the response to a prompt type of
alert.
Just not sure if the latest gem is distributing that new code or not?
Jarib? is that stuff out now?
--
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]