Re: [wtr-general] Re: Error while Selecting select_list by Value

2017-03-18 Thread David Drake
It does:
http://www.rubydoc.info/gems/watir/Watir/Select#disabled%3F-instance_method

On Friday, March 17, 2017 at 9:17:29 AM UTC-7, Super Kevy wrote:
>
> The second link in that thread mentioned the parent object.   W3schools is 
> a great place to learn how html works.
>
> Example: 
> puts ' Is select enabled? '
> puts b.select_list(:id,'PolicyTypeANDL').attribute_value("disabled").to_s
>
> I think there used to be  an .enabled?  method at one time, don't know if 
> its still there.  
> You can seek the guidance from http://watir.github.io/
>
>
>
>
>
>
> On Friday, March 17, 2017 at 10:37:16 AM UTC-5, Raja gopalan wrote:
>>
>> The example you have given is different in which option is disabled but 
>> in my case after the selection is done , complete select list would be 
>> disabled.
>>
>> On Mar 17, 2017 9:00 PM, "Super Kevy"  wrote:
>>
>>> Is that the way it works manually?
>>>
>>> Inputs can be disabled.  
>>> For example, https://www.w3schools.com/tags/att_option_disabled.asp   
>>> https://www.w3schools.com/tags/att_select_disabled.asp
>>>
>>>
>>>
>>>
>>> On Friday, March 17, 2017 at 10:22:05 AM UTC-5, Raja gopalan wrote:

 Ok another problem I see here is after the selection, select list is 
 getting disabled, once after the selection you can't do it again.

 On Mar 17, 2017 8:46 PM, "Super Kevy"  wrote:

> That would be a logical indicator.  If the page refreshes object 
> handles would likely change.
> Good luck.  Let us know your success.   
>
> On Friday, March 17, 2017 at 10:13:08 AM UTC-5, Raja gopalan wrote:
>>
>> It refreshes the page after the selection, might that be the reason? 
>>
>> Note : selection is successfully happen.
>>
>> On Mar 17, 2017 8:29 PM, "Super Kevy"  wrote:
>>
>>> So can't access dead object - indicates the object is no longer 
>>> valid .  
>>> Try google search with subject "can't access dead object DOM"   or 
>>> ruby or selenium.  
>>> Example: 
>>> http://stackoverflow.com/questions/18401890/know-if-a-dom-object-is-dead
>>> Example: 
>>> http://stackoverflow.com/questions/16396767/firefox-bug-with-selenium-cant-access-dead-object
>>>
>>> The solution is probably to do a find of the object you are looking 
>>> for after the select step as the dom may have updated a parent node and 
>>> now 
>>> that old object is stale.
>>>
>>>
>>>
>>>
>>> On Friday, March 17, 2017 at 9:37:59 AM UTC-5, Lucas Tierney wrote:

 Is the select causing a page navigation after selecting the option?

 On Friday, March 17, 2017 at 8:44:35 AM UTC-5, Raja gopalan wrote:
>
> Actually the option is selected successfully, but immediately 
> after the selection, this error was thrown and program was 
> terminated. 
>
> On Thursday, March 16, 2017 at 11:20:26 PM UTC+5:30, Super Kevy 
> wrote:
>>
>> So the error is intermittent, 1 of 10 failures.
>> Your select may need to be attached to a parent object which has 
>> refreshed. ( a div, a table, an element, who knows) 
>> This is based on the assumption: b.select_list(:id,
>> 'PolicyTypeANDL').select_value '225'
>> where b is just the gross browser object. 
>>
>>
>>
>> On Wednesday, March 15, 2017 at 12:47:17 PM UTC-5, Raja gopalan 
>> wrote:
>>>
>>> No, this error happens once out of ten times may be 
>>>
>>> On Mar 15, 2017 10:13 PM, "Arik Jones"  wrote:
>>>
 Are you loading any firefox plugins that change the state of 
 the DOM?

 On Wednesday, March 15, 2017 at 3:24:23 AM UTC-4, Raja gopalan 
 wrote:
>
> I have written the code to select the select list
>
> b.select_list(:id,'PolicyTypeANDL').select_value '225'
>
> It's working sometime and it's throwing error some time,
>
>
> Error is,
>
>
> Uncaught exception: [JavaScript Error: "can't access dead object" 
> {file: 
> "file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/fxdri...@googlecode.com/components/synthetic-mouse.js"
>  line: 6285}]'[JavaScript Error: "can't access dead object" 
> {file: 
> "file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/fxdri...@googlecode.com/components/synthetic-mouse.js"
>  line: 6285}]' when calling method: [wdIMouse::click]
>   [remote server] 
> file:///C:/Users/RAJAGO~1.M/AppData/Local/Temp/webdriver-profile20170315-2040-1lnocuz/extensions/fxdri...@googlecode.com/components/command-processor.js:12109

[wtr-general] Command executed within a test script behaves differently to when the same command is executed in irb

2014-09-03 Thread David Karl
I am investigating WATIR as a testing tool for a product that we are 
developing for a client. At this stage I have my tests successfully opening 
a browser, navigating to a page, entering text into the username and 
password fields, clicking sign in and verifying that it is on the right 
page. So in general, it is working well.

However, the next thing that I am trying to do is click on a button to 
begin a wizard. The element html is this:

Add 
a new Quick Event

In the irb console the command WatirPageHelper.browser.link(:class => 
"dialog btn btn-primary add-quick-event").flash causes the correct element 
to flash. WatirPageHelper.browser.link(:class => "dialog btn btn-primary 
add-quick-event").click also gets the correct response and opens the wizard 
as expected.

However, when I put this exact same command into a script file and execute 
that, it instead goes back to the login screen. Logging in on that screen 
takes me to a completely different part of the app. I've checked the 
corresponding button that should take me to that part of the app and there 
is no way that it could be confused with the element that I am identifying, 
so it's not simply a case of having more than one element identified by the 
same query. It has a completely different class.

I am greatly confused by this and would appreciate any advice.

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

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Above the fold screenshots

2013-07-12 Thread David West
How can I take them?

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

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[wtr-general] Fix for ie.close throwing NoMethodError when using ruby 1.92 & watir 1.9.2

2011-07-15 Thread David Brown
I've been using ruby 1.86 and Watir for years.  I've been trying to
upgrade to ruby 1.92 so that we don't have to maintain 2 versions of
ruby.

Using the latest version of Watir (1.9.2), one of the only issues I'm
noticing is that any time I call ie.close  win32ole in ruby 1.92
raises a NoMethodError instead of WIN32OLERuntimeError.

I've been able to patch this manually, but it's a pain to always re-
patch on on all our workstations every time a new release of watir
comes out.
It would be nice if someone could make the simple change below to fix
the issue in the next release of watir.

STEPS TO REPRODUCE ISSUE:
(when running ruby 1.92 & Watir 1.9.2)
ie = Watir::IE.start('google.com')
ie.close

NoMethodError: unknown property or method: `name'
HRESULT error code:0x800706ba
  The RPC server is unavailable.
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.9.2/lib/watir/
ie-class.rb:333:in `method_missing'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.9.2/lib/watir/
ie-class.rb:333:in `exists?'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-1.9.2/lib/watir/
ie-class.rb:420:in `close'
from (irb):4
from C:/Ruby192/bin/irb:12:in `'




TO FIX THE ISSUE:
change ie-class.rb:333:in `exists?'
FROM:  rescue WIN32OLERuntimeError
TO:   rescue WIN32OLERuntimeError, NoMethodError


If someone on the DEV team could make this simple change I'd
appreciate it :)
Thanks!
-David Brown




-- 
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: Clicking "OK" javascript confirm popup?

2010-12-13 Thread david
I am using solution #6 from 
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups.
The Javascript popup disappears fine, but the underlying web
application does not operate normally.
I change 'Search Settings' in Google. I click on the Save Preferences
button when I have finished
updating the Google Search Settings and then click the OK button on
the Javascript popup.
If I do this manually the page goes back to the Google home page, but
if I do it with Ruby-Watir the
control stays on the Search Settings page.
I have Watir 1.6.7 with ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-
mingw32]

David

On Dec 12, 11:23 am, Jarmo Pertman  wrote:
> Use the simplest way to handleJavaScriptpopups described in the wiki
> athttp://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
>
> Jarmo Pertman
> -
> IT does really matter -http://www.itreallymatters.net
>
> On Dec 7, 2:31 am, Eric Mathiesen  wrote:
>
> > Have you tried using .fire_event?
>
> > Sry I'm on my cell
>
> > On Dec 2, 2010 11:42 PM, "slindsey3000"  wrote:
>
> > I have read quite a few things online over the last 2 days about
> > clicking "OK" in ajavascriptconfirm pop-up.  I have been unable to
> > select ok using watir and IE.
>
> > Here is the div --
>
> > 
>
> >     > style="" onmousedown="util.toggleClass(this, 'active')"
> > onmouseup="util.toggleClass(this, 'active')"
> > onmouseover="util.toggleClass(this, 'hover')"
> > onmouseout="util.toggleClass(this, 'hover')"> > class="" onclick="if(confirm('Deleting means no going back.'))
> > {Mailbox.deleteThreads();} return false;" target="">Delete selected
> > conversations  > onmouseover="util.toggleClass(this, 'hover')"
> > onmouseout="util.toggleClass(this, 'hover')">  > id="" class="" onclick="Mailbox.toggleThreadSelection(); return
> > false;" target="">Select all
>
> > 
>
> > My code --
>
> > browser.link(:text, "Delete selected conversations").click_no_wait
> > ???
>
> > -- End of code
>
> > This (above) line  triggers thejavascriptconfirm dialog.
>
> > What goes in the ??? ... I have tried about 50 different things.  My
> > inexperience has gotten the best of me here with watir.
>
> > Any help or direction appreciated.  It seems like it should be easy
> > and common to have to click onjavascriptOK buttons.
>
> > Thanks!
>
> > Shawn
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search
> > before you ask, be nice.
>
> > watir-gene...@googlegroups.comhttp://groups.google.com/group/watir-general
> > watir-general+unsubscr...@googlegroups.com

-- 
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] pixel tracking with Celerity

2010-05-27 Thread David Beckwith
Is it possible to monitor asynchronous calls to other servers?  For
example, I want to test to make sure our API is being properly
implemented on a partner site: 'notify' signals are to be sent to my
company's site.  I want to log that their JQuery is generatign the
'notify' signals.  There are no changes to the browser.  The signal is
just a request for a pixel on my company's server with a bunch of GET
params set which contains all the tracking info.  Is this possible to
test using Celerity?

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

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: How Ruby Interacts with Powerpoint

2010-02-05 Thread David Mullet
Here's a very brief example, where doc is your document:

ppMouseClick = 1
ppActionHyperlink = 7

slide1 = doc.slides(1)
textbox = slide1.shapes(3)

link = textbox.ActionSettings(ppMouseClick)
link.Action = ppActionHyperlink
link.Hyperlink.Address = "http://www.microsoft.com";

I hope that helps. I'm short on time at this moment, but let me know
if you have further questions.

David

http://rubyonwindows.blogspot.com/
http://rubyonwindows.blogspot.com/search/label/powerpoint


On Feb 2, 6:46 am, arihan sinha  wrote:
> Thanks Tiffany.
>
> Actually the extent I've done by only refering to the url you ve mentioned.
> Also with some of my knowledge on QTP+VB script. where in QTP I've done this
> thing already.
>
> now as the url you ve mentioned, the links part is not covered . so stuck..
> Any way Thanks. will try my luck :)
>
> Thanks
>
> Arihan
>
> On Mon, Feb 1, 2010 at 8:23 PM, Tiffany Fodor  wrote:
> > Hi Arihan!
>
> > This is not really a question for this group - you would probably have
> > more luck with a Ruby group.
>
> > I haven't checked in detail, but you might have some luck with the
> > Ruby on Windows blog:
>
> >http://rubyonwindows.blogspot.com/search/label/powerpoint
>
> > Hope this helps!
>
> > -Tiffany
>
> > On Feb 1, 11:08 am, arihan sinha  wrote:
> > > Hi All,
>
> > > I was trying to do the ruby script for validation of  a powerpoint.
>
> > > I've done upto some extent
>
> > > ppt = WIN32OLE.new('PowerPoint.Application')
> > > ppt.Visible = true
> > > ## open the ppt
> > > doc = ppt.Presentations.Open('c:\sample.ppt')
> > > ## count the no of slides
> > > slidecount = doc.Slides.Count
> > >  ## retrieve the Text present in the slide 1 in shape 1
> > >  slidetext = doc.slides(1).shapes(1).TextFrame.TextRange.Text
>
> > > Now I want that there are some hyperlinks in the slide1.
>
> > > Could anyone pls let me know how I would retrieve those links.
>
> > > Thanks
> > > Arihan
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Watir General" group.
> > To post to this group, send email to watir-general@googlegroups.com
> > Before posting, please read the following guidelines:
> >http://wiki.openqa.org/display/WTR/Support
> > To unsubscribe from this group, send email to
> > watir-general-unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/watir-general

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general


[wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2009-11-03 Thread david

@ie.modal_dialog.title() gives me the correct title of the modal
dialog box when I run it from IRB
I am using IE7

David

On Nov 2, 2:16 pm, Bret Pettichord  wrote:
> I did a little research on this issue. There does appear to be a bug
> using this code with IE8 -- the title changed from "Web Page Dialog" to
> "Webpage Dialog" and the Watir code has not been updated to handle this.
> However, rereading your original post makes me think you are using IE7.
> Can you confirm this?
>
> You said that
>
> @ie.modal_dialog.title()
>
> works. What does it say the title is?
>
> Bret
>
>
>
> david wrote:
> > I run some preliminary commands in irb and pop up the modal dialog
> > successfully; but when I try and exercise the dialog it won't work.
>
> > irb(main):009:0> @modal = @ie.modal_dialog(:title, 'Batch Update')
> > Watir::Exception::NoMatchingWindowFoundException: Modal Dialog with
> > title Batch
> > Update not found. Timeout = 2.0
> >         from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
> > watir/modal_dialog.rb:51:in `locate'
> >         from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
> > watir/modal_dialog.rb:86:in `initialize'
> >         from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
> > watir/
> > container.rb:186:in `new'
> >         from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
> > watir/container
> > .rb:186:in `modal_dialog'
> >         from (irb):9
>
> > What also puzzles me is why I get an error as follows
> > irb(main):011:0> @modal = @ie.modal_dialog(:title, /Batch/)
> > ArgumentError: Title value must be String
>
> > when I had no issue attaching to the IE instance using same syntax
> > irb(main):002:0> @ie = Watir::IE.attach(:title, /Mainet/)
>
> > And lastly when I execute
>
> > @ie.modal_dialog.title()
>
> > that works!
>
> > David
>
> > On Oct 30, 8:50 am, Bret Pettichord  wrote:
>
> >> Could you try
>
> >> @ie.modal_dialog(:title, 'Batch Update')
>
> >> david wrote:
>
> >>> Have a section of code that is waiting for a modal dialog to appear
> >>> which is visible with the title ‘'Batch Update -- Web Page Dialog’
>
> >>> modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
> >>> modal.wait
> >>> modal.button(:value,'Yes').click_no_wait
>
> >>> However the dialog is not being found by title.
>
> >>> Is there a problem with findingmodal_dialogby title? Is there
> >>> another way to do this? I am using Ruby 1.8.6
>
> >>> I tried just modal = @ie.modal_dialog
> >>> which should work according to the API documentation but I see there
> >>> is a problem with this approach, even though there can be only one
> >>> modal dialog at a time on screen and this seems like an ideal way to
> >>> attach to a modal dialog. I get the following error:
>
> >>> IE#modal_dialognot supported with the current version of Ruby
> >>> (1.8.6).
> >>> Seehttp://jira.openqa.org/browse/WTR-2fordetails.
> >>> undefined method `connect_unknown' for WIN32OLE:Class
>
> >>> David
>
> >> --
> >> Bret Pettichord
> >> Lead Developer, Watir,www.watir.com
> >> Blog,www.io.com/~wazmo/blog
> >> Twitter,www.twitter.com/bpettichord
>
> --
> Bret Pettichord
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2009-11-01 Thread david

When I try my code out in irb I have no issues with the method calls
in the following code

while @ie.modal_dialog.exists? == false
sleep 1
 end
@ie.modal_dialog.button(:value,'Yes').click_no_wait

but when I run this code in my application I get these errors

IE#modal_dialog not supported with the current version of Ruby
(1.8.6).
See http://jira.openqa.org/browse/WTR-2 for details.
undefined method `connect_unknown' for WIN32OLE:Class

David

On Oct 30, 8:50 am, Bret Pettichord  wrote:
> Could you try
>
> @ie.modal_dialog(:title, 'Batch Update')
>
>
>
> david wrote:
> > Have a section of code that is waiting for a modal dialog to appear
> > which is visible with the title ‘'Batch Update -- Web Page Dialog’
>
> > modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
> > modal.wait
> > modal.button(:value,'Yes').click_no_wait
>
> > However the dialog is not being found by title.
>
> > Is there a problem with findingmodal_dialogby title? Is there
> > another way to do this? I am using Ruby 1.8.6
>
> > I tried just modal = @ie.modal_dialog
> > which should work according to the API documentation but I see there
> > is a problem with this approach, even though there can be only one
> > modal dialog at a time on screen and this seems like an ideal way to
> > attach to a modal dialog. I get the following error:
>
> > IE#modal_dialognot supported with the current version of Ruby
> > (1.8.6).
> > Seehttp://jira.openqa.org/browse/WTR-2for details.
> > undefined method `connect_unknown' for WIN32OLE:Class
>
> > David
>
> --
> Bret Pettichord
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2009-11-01 Thread david

I run some preliminary commands in irb and pop up the modal dialog
successfully; but when I try and exercise the dialog it won't work.

irb(main):009:0> @modal = @ie.modal_dialog(:title, 'Batch Update')
Watir::Exception::NoMatchingWindowFoundException: Modal Dialog with
title Batch
Update not found. Timeout = 2.0
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/modal_dialog.rb:51:in `locate'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/modal_dialog.rb:86:in `initialize'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/
container.rb:186:in `new'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/container
.rb:186:in `modal_dialog'
from (irb):9

What also puzzles me is why I get an error as follows
irb(main):011:0> @modal = @ie.modal_dialog(:title, /Batch/)
ArgumentError: Title value must be String

when I had no issue attaching to the IE instance using same syntax
irb(main):002:0> @ie = Watir::IE.attach(:title, /Mainet/)


And lastly when I execute

@ie.modal_dialog.title()

that works!

David

On Oct 30, 8:50 am, Bret Pettichord  wrote:
> Could you try
>
> @ie.modal_dialog(:title, 'Batch Update')
>
>
>
> david wrote:
> > Have a section of code that is waiting for a modal dialog to appear
> > which is visible with the title ‘'Batch Update -- Web Page Dialog’
>
> > modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
> > modal.wait
> > modal.button(:value,'Yes').click_no_wait
>
> > However the dialog is not being found by title.
>
> > Is there a problem with findingmodal_dialogby title? Is there
> > another way to do this? I am using Ruby 1.8.6
>
> > I tried just modal = @ie.modal_dialog
> > which should work according to the API documentation but I see there
> > is a problem with this approach, even though there can be only one
> > modal dialog at a time on screen and this seems like an ideal way to
> > attach to a modal dialog. I get the following error:
>
> > IE#modal_dialognot supported with the current version of Ruby
> > (1.8.6).
> > Seehttp://jira.openqa.org/browse/WTR-2for details.
> > undefined method `connect_unknown' for WIN32OLE:Class
>
> > David
>
> --
> Bret Pettichord
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2009-11-01 Thread david

I run some preliminary commands in irb and pop up the modal dialog
successfully; but when I try and exercise the dialog it won't work.

irb(main):009:0> @modal = @ie.modal_dialog(:title, 'Batch Update')
Watir::Exception::NoMatchingWindowFoundException: Modal Dialog with
title Batch
Update not found. Timeout = 2.0
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/
modal_dia
log.rb:51:in `locate'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/
modal_dia
log.rb:86:in `initialize'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/
container
.rb:186:in `new'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/
watir/
container
.rb:186:in `modal_dialog'
from (irb):9

What also puzzles me is why I get an error as follows
irb(main):011:0> @modal = @ie.modal_dialog(:title, /Batch/)
ArgumentError: Title value must be String

when I had no issue attaching to the IE instance using same syntax
irb(main):002:0> @ie = Watir::IE.attach(:title, /Mainet/)

David

On Oct 30, 8:50 am, Bret Pettichord  wrote:
> Could you try
>
> @ie.modal_dialog(:title, 'Batch Update')
>
>
>
> david wrote:
> > Have a section of code that is waiting for a modal dialog to appear
> > which is visible with the title ‘'Batch Update -- Web Page Dialog’
>
> > modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
> > modal.wait
> > modal.button(:value,'Yes').click_no_wait
>
> > However the dialog is not being found by title.
>
> > Is there a problem with findingmodal_dialogby title? Is there
> > another way to do this? I am using Ruby 1.8.6
>
> > I tried just modal = @ie.modal_dialog
> > which should work according to the API documentation but I see there
> > is a problem with this approach, even though there can be only one
> > modal dialog at a time on screen and this seems like an ideal way to
> > attach to a modal dialog. I get the following error:
>
> > IE#modal_dialognot supported with the current version of Ruby
> > (1.8.6).
> > Seehttp://jira.openqa.org/browse/WTR-2for details.
> > undefined method `connect_unknown' for WIN32OLE:Class
>
> > David
>
> --
> Bret Pettichord
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: ie.modal_dialog(:title, 'Tile') problem

2009-11-01 Thread david

I run some preliminary commands in irb and pop up the modal dialog
successfully; but when I try and exercise the dialog it won't work.

irb(main):009:0> @modal = @ie.modal_dialog(:title, 'Batch Update')
Watir::Exception::NoMatchingWindowFoundException: Modal Dialog with
title Batch
Update not found. Timeout = 2.0
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
modal_dia
log.rb:51:in `locate'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
modal_dia
log.rb:86:in `initialize'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
container
.rb:186:in `new'
from C:/Work/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
container
.rb:186:in `modal_dialog'
from (irb):9

David

On Oct 30, 8:50 am, Bret Pettichord  wrote:
> Could you try
>
> @ie.modal_dialog(:title, 'Batch Update')
>
>
>
> david wrote:
> > Have a section of code that is waiting for a modal dialog to appear
> > which is visible with the title ‘'Batch Update -- Web Page Dialog’
>
> > modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
> > modal.wait
> > modal.button(:value,'Yes').click_no_wait
>
> > However the dialog is not being found by title.
>
> > Is there a problem with finding modal_dialog by title? Is there
> > another way to do this? I am using Ruby 1.8.6
>
> > I tried just modal = @ie.modal_dialog
> > which should work according to the API documentation but I see there
> > is a problem with this approach, even though there can be only one
> > modal dialog at a time on screen and this seems like an ideal way to
> > attach to a modal dialog. I get the following error:
>
> > IE#modal_dialog not supported with the current version of Ruby
> > (1.8.6).
> > Seehttp://jira.openqa.org/browse/WTR-2for details.
> > undefined method `connect_unknown' for WIN32OLE:Class
>
> > David
>
> --
> Bret Pettichord
> Lead Developer, Watir,www.watir.com
> Blog,www.io.com/~wazmo/blog
> Twitter,www.twitter.com/bpettichord
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] ie.modal_dialog(:title, 'Tile') problem

2009-10-29 Thread david

Have a section of code that is waiting for a modal dialog to appear
which is visible with the title ‘'Batch Update -- Web Page Dialog’

modal = @ie.modal_dialog(:title, 'Batch Update -- Web Page Dialog')
modal.wait
modal.button(:value,'Yes').click_no_wait

However the dialog is not being found by title.

Is there a problem with finding modal_dialog by title? Is there
another way to do this? I am using Ruby 1.8.6

I tried just modal = @ie.modal_dialog
which should work according to the API documentation but I see there
is a problem with this approach, even though there can be only one
modal dialog at a time on screen and this seems like an ideal way to
attach to a modal dialog. I get the following error:

IE#modal_dialog not supported with the current version of Ruby
(1.8.6).
See http://jira.openqa.org/browse/WTR-2 for details.
undefined method `connect_unknown' for WIN32OLE:Class

David
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Using Watir to test AS400 mainframe AND testing strategy

2009-02-08 Thread David Jamison

Hi,

QTP certainly does work as required but licensing costs are a major 
issue therefore I am trying to address the significant licensing costs 
associated with QTP by scoping out the benefits of Open Source tools. 

I understand that Watir is designed for driving Web Browsers but I had 
hoped that there would be an "add-in" a la the QTP add in to drive the 
green screens which are effectively the same in many respects as 
imputing data via a browser window. 

There are two other issues involved

1.  We have a large number of Winrunner Scripts that will need to move 
to a new platform we have looked at WinQuick which is not 100% and this 
again makes me seek another alternative.

2. We also test a variety of browser based software this is currently 
done via QTP therefore strategically any move I would contemplate would 
demand that so far as is possible all testing should be on a single 
platform with a single scripting language.

Id be grateful to hear if others are in a similar situation and how this 
is being approached.

Best Regards

David





Alister Scott wrote:
> Watir purely drives web browsers.
> >From my understanding there are tools that dynamically convert green
> screen apps to web apps, but these are rather costly and your
> organization would need to decide on this strategic direction for your
> apps.
> Is QTP not working as required? Or are you after an open source/
> cheaper option?
> Some people on this list may be able to give insight on what other
> open source tools to consider.
>
> Cheers,
> Alister Scott
> http://watirmelon.wordpress.com/
>
>
> On Feb 7, 8:56 pm, David Jamison  wrote:
>   
>> Hi all,
>>
>> I am trying to find out if there is a way of testing "green screens" on
>> an AS400?
>> We are currently using QTP with the terminal emulator add-in to preform
>> this task.
>>
>> Many Thanks
>>
>> David
>> 
> >
>
>   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Using Watir to test AS400 mainframe

2009-02-07 Thread David Jamison

Hi all,

I am trying to find out if there is a way of testing "green screens" on 
an AS400?
We are currently using QTP with the terminal emulator add-in to preform 
this task.

Many Thanks

David

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---