Thanks for the reply, The webpage you pointed works only with
watir-webdriver not watir. I switched to watir-webdriver now. By 'it
doesn't work' I meant that the alert api was not working. I don't exactly
remember but it was something along the lines of nomethoderror.
But I am getting another error with watir-webdriver handling modal dialog.
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/response.rb:51:in
`assert_ok': Modal dialog present
(Selenium::WebDriver::Error::UnhandledAlertError)
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/response.rb:15:in
`initialize'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/http/common.rb:59:in
`new'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/http/common.rb:59:in
`create_response'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/http/default.rb:66:in
`request'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/http/common.rb:40:in
`call'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/bridge.rb:634:in
`raw_execute'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/bridge.rb:612:in
`execute'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/remote/bridge.rb:170:in
`getTitle'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.39.0/lib/selenium/webdriver/common/driver.rb:130:in
`title'
from
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.4/lib/watir-webdriver/browser.rb:126:in
`title'
from excel_reader.rb:24:in `<main>'
On Tuesday, December 31, 2013 2:46:03 PM UTC-5, Dan wrote:
>
> Should be as simple as using what's on this page
> http://watirwebdriver.com/javascript-dialogs/. When you say it doesn't
> work, do you get an exception or does nothing happen?
>
> On Tuesday, December 31, 2013 9:12:17 AM UTC-5, Madhu Ganesh wrote:
>>
>> Folks,
>>
>> I am using Ruby 1.9.3 and Watir 5.0.0 . I've tried many solution
>> available online to handle javascript popups such as
>> http://watirmelon.com/2010/10/31/dismissing-pesky-javascript-dialogs-with-watir/
>>
>> and many other stack overflow posts. I am unable to get it to work with IE.
>> Any help greatly appreciated.
>>
>> Thanks
>> Madhu.
>>
>
--
--
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.