[wtr-general] Re: Undefined method 'javascript_dialog' using Watir 4.0.2/Ruby 1.9.3

2013-01-18 Thread Jarmo Pertman
As Dan mentioned - use the JavaScript dialogs API. Use the #alert method 
(http://rubydoc.info/github/watir/watir-classic/Watir/Container:alert) and 
then appropriate Alert 
(http://rubydoc.info/github/watir/watir-classic/Watir/Alert) methods.

Jarmo Pertman
-
IT does really matter - http://itreallymatters.net


On Friday, January 18, 2013 2:49:05 AM UTC+2, Dan wrote:

 There's a better way to do it now.  Check this out:

 http://watirwebdriver.com/javascript-dialogs/

 On Thursday, January 17, 2013 5:54:10 PM UTC-5, captin wrote:

 I've searched all over this user group and the web and can't find an 
 answer to my issue. I'm attempting to use the 'javascript_dialog' method 
 to access alert windows. It's my understanding that this capability is 
 supposed to be included in the standard watir (at least it once 
 was according to information like 
 thishttp://stackoverflow.com/questions/8164039/handling-a-javascript-popup-occurring-on-a-keyup-event/8172888#8172888).
  
 I am trying to determine if this functionality has been deprecated or if I 
 might have an issue with my configuration. If it has been deprecated, is 
 there a better way to achieve what I'm trying to through watir-webdriver or 
 watir-classic?
  
 Thanks in advance!
  
 Ruby version: ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
  
 *** LOCAL GEMS ***
 addressable (2.3.2)
 bigdecimal (1.1.0)
 builder (3.1.4)
 childprocess (0.3.6)
 commonwatir (4.0.0)
 diff-lcs (1.1.3)
 ffi (1.2.0 x86-mingw32)
 firewatir (1.9.4)
 hoe (3.3.1)
 io-console (0.3)
 json (1.5.4)
 libwebsocket (0.1.6.1)
 logger (1.2.8)
 mini_magick (3.2.1)
 minitest (2.5.1)
 multi_json (1.3.7)
 nokogiri (1.5.5 x86-mingw32)
 rake (0.9.2.2)
 rautomation (0.7.3)
 rdoc (3.9.4)
 rspec (2.12.0)
 rspec-core (2.12.2)
 rspec-expectations (2.12.1)
 rspec-mocks (2.12.0)
 rubyzip (0.9.9)
 s4t-utils (1.0.4)
 selenium-webdriver (2.26.0)
 subexec (0.0.4)
 syntax (1.0.0)
 test-unit (2.5.3)
 user-choices (1.1.6.1)
 watir (4.0.2 x86-mingw32)
 watir-classic (3.3.0)
 watir-webdriver (0.6.1)
 websocket (1.0.4)
 win32-api (1.4.8 x86-mingw32)
 win32-process (0.7.0)
 win32screenshot (1.0.7)
 windows-api (0.4.2)
 windows-pr (1.2.2)
 xml-simple (1.1.2)



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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Undefined method 'javascript_dialog' using Watir 4.0.2/Ruby 1.9.3

2013-01-18 Thread captin
Thank you gents. The Watir::Alert objects are exactly what I needed. Only 
downside is that I have to switch to watir-classic from the standard watir, 
since I'm testing primarily in IE. So far there aren't any side effects. 
*fingers crossed*
 
And thanks for your continued help. This is one of the most supportive 
communities I've dealt with.
 
 
On Friday, January 18, 2013 6:22:45 AM UTC-6, Jarmo Pertman wrote:

 As Dan mentioned - use the JavaScript dialogs API. Use the #alert method (
 http://rubydoc.info/github/watir/watir-classic/Watir/Container:alert) and 
 then appropriate Alert (
 http://rubydoc.info/github/watir/watir-classic/Watir/Alert) methods.

 Jarmo Pertman
 -
 IT does really matter - http://itreallymatters.net


 On Friday, January 18, 2013 2:49:05 AM UTC+2, Dan wrote:

 There's a better way to do it now.  Check this out:

 http://watirwebdriver.com/javascript-dialogs/

 On Thursday, January 17, 2013 5:54:10 PM UTC-5, captin wrote:

 I've searched all over this user group and the web and can't find an 
 answer to my issue. I'm attempting to use the 'javascript_dialog' 
 method to access alert windows. It's my understanding that this capability 
 is supposed to be included in the standard watir (at least it once 
 was according to information like 
 thishttp://stackoverflow.com/questions/8164039/handling-a-javascript-popup-occurring-on-a-keyup-event/8172888#8172888).
  
 I am trying to determine if this functionality has been deprecated or if I 
 might have an issue with my configuration. If it has been deprecated, is 
 there a better way to achieve what I'm trying to through watir-webdriver or 
 watir-classic?
  
 Thanks in advance!
  
 Ruby version: ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
  
 *** LOCAL GEMS ***
 addressable (2.3.2)
 bigdecimal (1.1.0)
 builder (3.1.4)
 childprocess (0.3.6)
 commonwatir (4.0.0)
 diff-lcs (1.1.3)
 ffi (1.2.0 x86-mingw32)
 firewatir (1.9.4)
 hoe (3.3.1)
 io-console (0.3)
 json (1.5.4)
 libwebsocket (0.1.6.1)
 logger (1.2.8)
 mini_magick (3.2.1)
 minitest (2.5.1)
 multi_json (1.3.7)
 nokogiri (1.5.5 x86-mingw32)
 rake (0.9.2.2)
 rautomation (0.7.3)
 rdoc (3.9.4)
 rspec (2.12.0)
 rspec-core (2.12.2)
 rspec-expectations (2.12.1)
 rspec-mocks (2.12.0)
 rubyzip (0.9.9)
 s4t-utils (1.0.4)
 selenium-webdriver (2.26.0)
 subexec (0.0.4)
 syntax (1.0.0)
 test-unit (2.5.3)
 user-choices (1.1.6.1)
 watir (4.0.2 x86-mingw32)
 watir-classic (3.3.0)
 watir-webdriver (0.6.1)
 websocket (1.0.4)
 win32-api (1.4.8 x86-mingw32)
 win32-process (0.7.0)
 win32screenshot (1.0.7)
 windows-api (0.4.2)
 windows-pr (1.2.2)
 xml-simple (1.1.2)



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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Undefined method 'javascript_dialog' using Watir 4.0.2/Ruby 1.9.3

2013-01-17 Thread Dan
There's a better way to do it now.  Check this out:

http://watirwebdriver.com/javascript-dialogs/

On Thursday, January 17, 2013 5:54:10 PM UTC-5, captin wrote:

 I've searched all over this user group and the web and can't find an 
 answer to my issue. I'm attempting to use the 'javascript_dialog' method 
 to access alert windows. It's my understanding that this capability is 
 supposed to be included in the standard watir (at least it once 
 was according to information like 
 thishttp://stackoverflow.com/questions/8164039/handling-a-javascript-popup-occurring-on-a-keyup-event/8172888#8172888).
  
 I am trying to determine if this functionality has been deprecated or if I 
 might have an issue with my configuration. If it has been deprecated, is 
 there a better way to achieve what I'm trying to through watir-webdriver or 
 watir-classic?
  
 Thanks in advance!
  
 Ruby version: ruby 1.9.3p327 (2012-11-10) [i386-mingw32]
  
 *** LOCAL GEMS ***
 addressable (2.3.2)
 bigdecimal (1.1.0)
 builder (3.1.4)
 childprocess (0.3.6)
 commonwatir (4.0.0)
 diff-lcs (1.1.3)
 ffi (1.2.0 x86-mingw32)
 firewatir (1.9.4)
 hoe (3.3.1)
 io-console (0.3)
 json (1.5.4)
 libwebsocket (0.1.6.1)
 logger (1.2.8)
 mini_magick (3.2.1)
 minitest (2.5.1)
 multi_json (1.3.7)
 nokogiri (1.5.5 x86-mingw32)
 rake (0.9.2.2)
 rautomation (0.7.3)
 rdoc (3.9.4)
 rspec (2.12.0)
 rspec-core (2.12.2)
 rspec-expectations (2.12.1)
 rspec-mocks (2.12.0)
 rubyzip (0.9.9)
 s4t-utils (1.0.4)
 selenium-webdriver (2.26.0)
 subexec (0.0.4)
 syntax (1.0.0)
 test-unit (2.5.3)
 user-choices (1.1.6.1)
 watir (4.0.2 x86-mingw32)
 watir-classic (3.3.0)
 watir-webdriver (0.6.1)
 websocket (1.0.4)
 win32-api (1.4.8 x86-mingw32)
 win32-process (0.7.0)
 win32screenshot (1.0.7)
 windows-api (0.4.2)
 windows-pr (1.2.2)
 xml-simple (1.1.2)


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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com