[wtr-general] Test Automation Bazaar discount available. March 22-24 in Austin Texas.

2012-03-19 Thread Bret Pettichord
The Test Automation Bazaar will be in Austin this week, on Friday and
Saturday March 23-24.


Tickets are still available to attend this event, which is hosted by the
international Watir Team. This only happens once a year. It was held in San
Francisco last year and will be in another country next year. But this
year, it is being held in Austin. So this is your chance.


And with this discount code, you can get an additional $150 off your ticket
price.

WEBDRIVER

But this discount ends Wednesday at midnight.


Website

http://watir.com/test-automation-bazaar/


Speakers List and the lastest updates

https://github.com/watir/watir-bazaar/wiki


Tickets and Current Attendee List

http://watirbazaar.eventbrite.com/



We are also hosting a separate Charity Workshop on Thursday afternoon.

http://watir.com/test-automation-bazaar/


Bret

-- 
Bret Pettichord
Director, Watir Project  www.watir.com
QA Manager, Convio  www.convio.com/careers
Twitter  @bpettichord <http://www.twitter.com/bpettichord>

Test Automation Bazaar, Austin, March 23-24
watirbazaar.eventbrite.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] Re: [Wtr-development] Watir 2.0.3 Released

2011-10-21 Thread Bret Pettichord
Great! We should get money from Microsoft for all the work we've done to
support IE9.

Bret

On Fri, Oct 21, 2011 at 10:55 AM, Jarmo  wrote:

> Hi!
>
> Watir 2.0.3 has been released. This version has the following changes:
> * fix ElementCollections#[]
> * fix IE::Process.start for IE9 when opening multiple windows
> * add support for Spanish JavaScript and file upload dialogs
> * fix IE#execute_script for Ruby 1.9 with IE9
>
> Install it with:
> gem install watir
>
> Jarmo
>
> ___
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>



-- 
Bret Pettichord
Director, Watir Project, www.watir.com

Blog, www.testingwithvision.com
Twitter, www.twitter.com/bpettichord

-- 
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: [Wtr-development] Watir 2.0.0.rc2 released

2011-07-25 Thread Bret Pettichord
This is so exciting!

On Sun, Jul 24, 2011 at 4:53 PM, Jarmo  wrote:

> Good news everyone!
>
> I've found some time to play with Watir and managed to release a new
> version - 2.0.0.rc2 (rc1 had buggy dependency, sorry)!
>
> There are some big changes including 0-based-indexing, which is enabled by
> default and not releasing new versions of FireWatir.
> Also, all collection factory methods accept now (multiple)
> specifiers/locators. A lot of these changes are compatible with
> Watir-WebDriver (see the list of incompatibilities compared with previous
> versions at
> https://github.com/jarib/watir-webdriver/wiki/Comparison-with-Watir-1.X).
>
> Here is the full changelog:
> * RIP FireWatir - there won't be any new releases
> * all elements are using 0-based indexing instead of old 1-based indexing:
>  - disable it temporarily: require "watir";
> Watir.options[:zero_based_indexing] = false
> * #radio and #checkbox methods doesn't allow 3 parameters anymore for
> locating with "value"
>  - use browser.radio(:name => "something", :value => "some value") syntax
> instead for locating with "value"
> * all element methods accept now multiple-specifiers with hash syntax, for
> example:
>  - browser.element(:class => "someclass", :name => "somename")
> * all elements are searchable by :xpath and :css now (note that it's
> usually slower than searching by other specifiers)
> * #button, #form and #frame doesn't accept single string as a specifier
> anymore to search by name:
>  - use browser.frame(:name => "name") or browser.frame(:name, "name")
> syntax instead
> * :index => 0 is used as a default specifier if nothing is specified:
>  - browser.div(:id => "id").table.tr is same as browser.div(:id =>
> "id").table(:index => 0).tr(:index => 0)
> * all collection methods accept now specifiers too:
>  - browser.divs(:class => "someclass").each {|div| puts div.class_name} #
> => "someclass"
> * removed FormElement class
> * renamed CheckBox class to Checkbox
> * renamed CheckBoxes class to Checkboxes
> * added aliases:
>  - tr => row
>  - trs => rows
>  - td => cell
>  - tds => cells
>  - a => link
>  - as => links
>
> You can try these changes out by executing `gem install watir --pre`!
>
> Since this release includes quite many core changes (even non-visible ones)
> then i really encourage everyone to run their current tests against this
> version first by disabling 0-based-indexing. Let me know about the things
> which did get broken after the upgrade. Hope there's none :)
>
> Cheers!
>
> Jarmo Pertman
>
> ___
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>



-- 
Bret Pettichord
Director, Watir Project, www.watir.com

Blog, www.testingwithvision.com
Twitter, www.twitter.com/bpettichord

-- 
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: [Wtr-development] Released Watir 1.9.2

2011-07-11 Thread Bret Pettichord
Awesome.

On Mon, Jul 11, 2011 at 11:43 AM, Jarmo  wrote:

> Hi!
>
> We're into frequent releases - just released Watir 1.9.2. Install it
> with "gem install watir".
>
> There are only IE changes this time, sorry FireWatir users:
> * Bump RAutomation dependency version to 0.6.2 to:
>  - fix/improve Watir::IE#send_keys.
>  - fix Watir::IE loading for certain Windows XP environments
> (http://jira.openqa.org/browse/WTR-484).
> * Restored Watir::IE#autoit method to use RAutomation's AutoIt adapter
> with a deprecation warning.
> * Cache IE.version result to not access registry with each execution -
> was causing slowness in TextField#set for example.
> * Do not raise UnknownObjectException if parent element doesn't exist
> when calling Element#exists?
> * Element#flash highlights elements again
> (http://jira.openqa.org/browse/WTR-478)
>
> Thank you!
>
> Jarmo
> ___
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>



-- 
Bret Pettichord
Director, Watir Project, www.watir.com

Blog, www.testingwithvision.com
Twitter, www.twitter.com/bpettichord

-- 
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] Excerpts from Watir Day

2011-04-12 Thread Bret Pettichord
http://www.youtube.com/watch?v=pS3yNY9hpx0

Excerpts from Bret Pettichord and Charley Baker speaking about the Next
Steps for Watir at Watir Day San Francisco April 3rd, 2011. They discuss how
the Watir project will be supporting Firefox 4 and integrating with
WebDriver.
Complete presentation slides can be found at

http://wiki.openqa.org/display/WTR/Next+Steps+for+Watir

-- 
Bret Pettichord
Director, Watir Project, www.watir.com

Blog, www.testingwithvision.com
Twitter, www.twitter.com/bpettichord

-- 
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: [Wtr-development] Watir 1.6.6.rc1 is out!

2010-09-24 Thread Bret Pettichord
Thank you Charley and Jarmo for all the work you've done to pull this
release together. I really appreciate it.

Bret

On Fri, Sep 24, 2010 at 4:04 PM, Charley Baker wrote:

> Hello (fire)watirists!
>
> We are happy to announce that a (very) long-waited (Fire)Watir
> 1.6.6.rc1 is out! Please grab it now:
>
> Make sure your local gem system is up to date.
>
> gem update --system
>
> run gem -v at the command line, you should be running 1.3.7
>
> gem install (fire)watir --pre
>
> Note: If you're installing on Mac or Linux you'll want to use
> firewatir for the gem install.
>
> ...and give it a go. Try to use it with your existing test suites and
> so on to see if there are any issues.
>
> If there are any problems then:
> 1) Fix it and send a pull request on Github, our main github repo:
> http://github.com/bret/watir
>  This is the preferred way of accepting patches, we're happy to work
> with you on how to do this, github also has extensive docs on how to
> fork and submit a pull request.
> 2) Add it to our JIRA tracker: http://jira.openqa.org/browse/WTR
>
> If you need help with that let us know.
>
> You can check out changelog at
> http://github.com/bret/watir/blob/master/CHANGES
>
> With your help, we will be getting out a final version of 1.6.6
> shortly and working on continuously rolling out releases on a quick
> timeline. We already have actions lined up for 1.6.7 which should be
> released fairly quickly as we make our way through the current tickets
> and changes and roll them into releases.
>
> If you do have time and can help, please let us know, we can take any
> help from documentation to running tests on various OSes. We're a
> friendly project and would be happy to mentor you if you and/or your
> company is willing to put in the time.
>
>
> Cheers,
>
> Charley & Jarmo
> _______
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>



-- 
Bret Pettichord
Lead Developer, Watir, www.watir.com

Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

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


Re: [Wtr-development] [wtr-general] Re: Check out the Watir Stack Exchange site!

2010-09-15 Thread Bret Pettichord
Hey there. I am just catching up on some emails from when I was on vacation
and this is one of them.

I am sorry that the Watir Stack Exchange site did not work out.

I like the idea of encouraging people to use Stack Exchange.

However, I don't think that we as a community have to choose between using
watir-general or stack exchange. We can use both.

Zeljko, if you personally only want to support Stack Exchange then go for
it. I think each of the Sheriffs should also make their own decision about
what they want to support.

Bret


On Fri, Aug 13, 2010 at 10:01 AM, Željko Filipin <
zeljko.fili...@wa-research.ch> wrote:

> I am giving up on Watir Stack Exchange site (http://bit.ly/watirse).
> Nobody is voting on the questions. Maybe people are on vacation, or nobody
> cares.
>
> I will concentrate on thinking how to move Watir support to
> http://stackoverflow.com/
>
> One idea I have:
>
> - create a page at watir.com with instructions how to post a question at
> stackoverflow.com
> - update http://watir.com/support/ page to say stackoverflow.com is the
> place for Watir support
> - send warning message at watir-general that it will be read only for a
> week
> - in that week post to watir-general only links to Watir questions at
> stackoverflow.com
> - see what happens and decide what to do next
>
> Is it too radical? :)
>
> Željko
>
> ___
> Wtr-development mailing list
> wtr-developm...@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>



-- 
Bret Pettichord
Lead Developer, Watir, www.watir.com

Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

-- 
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: Delete cookies in Firewatir

2009-11-17 Thread Bret Pettichord

Please make a proposal for the method names and parameters.

Here is what we have for IE right now.
http://github.com/bret/watir/blob/master/watir/lib/watir/cookiemanager.rb

I've never used it. I would like to hear from some people who have. What 
functionality do you use the cookiemanager for?

Bret

Angrez Singh wrote:
> Yes, I have seen that preety interesting stuff. Need to see what all 
> we can make into FireWatir.
>
> On Tue, Nov 17, 2009 at 4:57 PM, aidy lewis  > wrote:
>
>
> have you seen this by Matt
>
> 
> http://sticklebackplastic.com/post/2009/10/20/Advanced-FireWatir-e28093-cheat-sheet.aspx#comment
> ?
>
> Aidy
>
> 2009/11/17 Angrez Singh mailto:ang...@gmail.com>>:
> > thats what I am waiting for method names. Let me discuss with
> Bret and will
> > let you know you can go ahead and put these methods there.
> >
> > - Angrez
> >
> > On Tue, Nov 17, 2009 at 4:50 PM, aidy lewis
> mailto:aidy.le...@googlemail.com>>
> > wrote:
> >>
> >> Are you going to take this up then, otherwise I can do it, if you
> >> provide your preferred method names.
> >>
> >> Not sure how we are going to do it in Watir though.
> >>
> >> Aidy
> >>
> >> 2009/11/17 Angrez Singh  >:
> >> > :) correct thats the approach. Was discussing with Bret the
> syntax,
> >> > method
> >> > names so that its consistent with IE and FF.
> >> >
> >> > - Angrez
> >> >
> >> > On Tue, Nov 17, 2009 at 4:44 PM, aidy lewis
> mailto:aidy.le...@googlemail.com>>
> >> > wrote:
> >> >>
> >> >> Angrez,
> >> >>
> >> >> Have you included cookie manipulation methods in FireWatir yet?
> >> >>
> >> >> If not I was think of using the Mozilla Classes
> >> >>
> >> >> https://developer.mozilla.org/en/Code_snippets/Cookies
> >> >>
> >> >> Thanks
> >> >>
> >> >> Aidy
> >> >>
> >> >>
> >> >
> >> >
> >> > >
> >> >
> >>
> >>
> >
> >
> > >
> >
>
>
>
>
> >


--~--~-~--~~~---~--~~
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: install for 1.6.2 doesn't work after 1.6.5 release

2009-11-13 Thread Bret Pettichord

Alan,

You are seeing a problem that we also saw with Watir 1.6.5RC1. We fixed 
it in the first 1.6.5 by changing the way watir does dependencies.

Here are the dependencies for Watir 1.6.2

C:\work\common_ground>gem dependency watir
Gem watir-1.6.2
  win32-process (>= 0.5.5, runtime)
  windows-pr (>= 0.6.6, runtime)
  activesupport (>= 0, runtime)
  commonwatir (= 1.6.2, runtime)
  firewatir (>= 0, runtime)

The problem is that Watir 1.6.2 will use FireWatir 1.6.5, which runs 
into a conflict with the common watir gem.

My thought at the moment is that we should release a Watir 1.6.3 that is 
the same as 1.6.2, but with the dependencies declared correctly. Because 
I know people are going to want to go back and forth between 1.6.5 and 
1.6.2.

Thoughts?

Bret

Alan Baird wrote:
> Should have said...
>
> ..it seems that there is an unnecessary gem dependency in the firewatir 1.6.2 
> install for commonwatir 1.6.5 (or maybe it's just for the latest version).
>
> -Original Message-
> From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] 
> On Behalf Of Alan Baird
> Sent: Thursday, November 12, 2009 11:59 AM
> To: watir-general@googlegroups.com
> Subject: [wtr-general] install for 1.6.2 doesn't work after 1.6.5 release
>
>
> This morning I was helping a coworker get some things up and running with 
> watir and noticed that he had inadvertently got 1.6.5.  Since 1.6.5 changes 
> the way .visible? works, we decided to go back to 1.6.2 and make sure 
> everything was ok there.  We removed watir, commonwatir and firewatir and 
> verified that everything was uninstalled.  After that, we did the following:
>
> C:\ >gem install watir -v 1.6.2
> ERROR:  Error installing watir:
> firewatir requires commonwatir (= 1.6.5, runtime)
>
> C:\ >gem list --local
>
> *** LOCAL GEMS ***
> (removed unnecessary gems)
> ...
> commonwatir (1.6.2)
> ...
>
> C:\ >gem install firewatir -v 1.6.2
> Successfully installed firewatir-1.6.2
> 1 gem installed
> Installing ri documentation for firewatir-1.6.2...
> Installing RDoc documentation for firewatir-1.6.2...
>
> C:\ >gem install watir -v 1.6.2
> Successfully installed watir-1.6.2
> 1 gem installed
> Installing ri documentation for watir-1.6.2...
> Installing RDoc documentation for watir-1.6.2...
>
> So, to me it seems that there is a gem dependency in the firewatir install 
> for commonwatir 1.6.5 (or maybe it's just the latest version).
>
> What do you think?
>
> Alan
>
> This email message and any attachments are for the sole use of the intended 
> recipients and may contain proprietary and/or confidential information which 
> may be privileged or otherwise protected from disclosure. Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not an 
> intended recipient, please contact the sender by reply email and destroy the 
> original message and any copies of the message as well as any attachments to 
> the original message.
>
>
>
> This email message and any attachments are for the sole use of the intended 
> recipients and may contain proprietary and/or confidential information which 
> may be privileged or otherwise protected from disclosure. Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not an 
> intended recipient, please contact the sender by reply email and destroy the 
> original message and any copies of the message as well as any attachments to 
> the original message.
>
> >
>   


--~--~-~--~~~---~--~~
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: Is it impossible to use bring_to_front without @autoit = WIN32OLE.new("AutoItX3.Control")

2009-11-13 Thread Bret Pettichord

Actually, I think I know the problem. There was a bug with autoit 
registration, fixed in Watir 1.6.5. I bet that is what you ran into.

Bret

Bret Pettichord wrote:
> Thanks for the report. The autoit line should not be needed. We'd need 
> to be able to reproduce the problem you encountered before we could 
> advise on what should be done about it.
>
> Bret
>
> Emre Sevinc wrote:
>   
>> Hi,
>>
>> I tried to use bring_to_front as described in cheat sheet:
>> http://wiki.openqa.org/display/WTR/Cheat+Sheet
>>
>> But I was not successful. Later I discovered that I can write
>> something like
>>
>> require 'win32ole'
>>
>> and then
>>
>> @autoit = WIN32OLE.new("AutoItX3.Control")
>>
>> and only after that bring_to_front worked as I expected. The funny is
>> that I found the solution in the FAQ's 'how to take a screenshot'
>> section:
>>
>> http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoItakescreenshotsandappendtoaWordfile%3F
>>
>> So, do I really need that @autoit ... line and should the cheat sheet
>> (and other relevant documentation) be updated or am I missing
>> something?
>>
>> Cheers,
>>
>> --
>> Emre Sevinc
>>
>>
>> 
>>   
>> 
>
>
> >
>   


--~--~-~--~~~---~--~~
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: Is it impossible to use bring_to_front without @autoit = WIN32OLE.new("AutoItX3.Control")

2009-11-13 Thread Bret Pettichord

Thanks for the report. The autoit line should not be needed. We'd need 
to be able to reproduce the problem you encountered before we could 
advise on what should be done about it.

Bret

Emre Sevinc wrote:
> Hi,
>
> I tried to use bring_to_front as described in cheat sheet:
> http://wiki.openqa.org/display/WTR/Cheat+Sheet
>
> But I was not successful. Later I discovered that I can write
> something like
>
> require 'win32ole'
>
> and then
>
> @autoit = WIN32OLE.new("AutoItX3.Control")
>
> and only after that bring_to_front worked as I expected. The funny is
> that I found the solution in the FAQ's 'how to take a screenshot'
> section:
>
> http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoItakescreenshotsandappendtoaWordfile%3F
>
> So, do I really need that @autoit ... line and should the cheat sheet
> (and other relevant documentation) be updated or am I missing
> something?
>
> Cheers,
>
> --
> Emre Sevinc
>
>
> >
>   


--~--~-~--~~~---~--~~
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: FireWatir status method gives error in 1.6.5

2009-11-12 Thread Bret Pettichord

We also need to add a unit test for the status method. I know we have 
one for the IE status method.

Bret

Bret Pettichord wrote:
> Thanks for the report and the fix.
>
> Who can commit this fix?
>
> Bret
>
> al3kc wrote:
>   
>> Seems like WINDOW_VAR in status method should be typed in lower case.
>> Then it works.
>> 
>>>   
>>>   
>
>
> >
>   


--~--~-~--~~~---~--~~
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: FireWatir status method gives error in 1.6.5

2009-11-12 Thread Bret Pettichord

Thanks for the report and the fix.

Who can commit this fix?

Bret

al3kc wrote:
> Seems like WINDOW_VAR in status method should be typed in lower case.
> Then it works.
> >   


--~--~-~--~~~---~--~~
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: Watir 1.6.5.rc2 - release candidate available for testing

2009-11-11 Thread Bret Pettichord

I believe that you have a problem, but we'll need more details if would
you would like us to look into it.

Bret

jnxgn wrote:
> I do not know how to open up a ticket there, so I would not try it.
>
> Since 1.6.5 appears dont deal with chinese characters properly, I
> uninstalled it by gem uninstall watir -v 1.6.5, but the watir scripts
> would not work. I removed ruby186-27 and reinstalled the ruby 186-27,
> when I tried to gem install watir -v 1.6.2, the puter did not let me
> go.
> Then I installed watir 1.6.5 by gem install watir and gem install
> watir -v 1.6.2, rename the folder of watir-1.6.5 to another folder,
> and rename the folder of watir-1.6.2 to watir-1.6.5. the watir scripts
> worked fine.
>
> It means that something is wrong within watir 1.6.5
>
> On 11月11日, 上午11时46分, Bret Pettichord  wrote:
>   
>> Could you open up a ticket on Jira for this? You can attach images 
>> there.http://jira.openqa.org/browse/WTR
>>
>>
>>
>>
>>
>> jnxgn wrote:
>> 
>>> I installed the 1.6.5 after the release, chinese input and output
>>> still not working.
>>> BTW, where can I upload an image to show this.
>>>   
>>> On 11月11日, 上午6时21分, Charley Baker  wrote:
>>>   
>>>> Done. I was waiting on some people, never heard back.
>>>> 
>>>> -c
>>>> 2009/11/10 Bret Pettichord 
>>>> 
>>>>> Where are we with the 1.6.5 release?
>>>>>   
>>>>> Bret
>>>>>   
>>>>> Charley Baker wrote:
>>>>>   
>>>>>> There is a change in this version for UTF-8:
>>>>>> 
>>>>> http://github.com/bret/watir/commit/466332be758a43c6045374c6c6ca03827...
>>>>>   
>>>>>> I'm honestly not sure if that's throwing you off or not. Let me know,
>>>>>> I was hoping to release today.
>>>>>> 
>>>>>> -c
>>>>>> 
>>>>>> 2009/11/5 jnxgn mailto:s...@jnxgn.cn>>
>>>>>> 
>>>>>> In IE, maybe it is not the problem of watir itself, but something
>>>>>> else.
>>>>>> 
>>>>>> On 11月6日, 上午1时59分, Charley Baker >>>>> <mailto:charley.ba...@gmail.com>> wrote:
>>>>>> > Are you still seeing this problem? Is that happening in Firefox
>>>>>> or IE?
>>>>>> 
>>>>>> > -c
>>>>>> 
>>>>>> > On Tue, Nov 3, 2009 at 12:34 AM, jnxgn >>>>> <mailto:s...@jnxgn.cn>> wrote:
>>>>>> 
>>>>>> > > After I installed the gems according to the instructions, the
>>>>>> Chinese
>>>>>> > > characters getting from and posting to web pages are messed up.
>>>>>> 
>>>>>> > > On Oct 23, 5:14 am, Charley Baker >>>>> <mailto:charley.ba...@gmail.com>> wrote:
>>>>>> > > > Hi all,
>>>>>> 
>>>>>> > > > We have a new version of Watir for testing, 1.6.5.rc2.
>>>>>> > > > the release is here with instructions:
>>>>>> > >http://wiki.openqa.org/display/WTR/Development+Builds
>>>>>> 
>>>>>> > > > If you have a chance to take a look at it, let us know.
>>>>>> There have been
>>>>>> > > a
>>>>>> > > > few changes since the last release candidate, most of those
>>>>>> are bug fixes
>>>>>> > > > for installation and additional fixes for tables, you can
>>>>>> view the git
>>>>>> > > > history
>>>>>> 
>>>>>> here:http://github.com/bret/watir/commits/master/I'll<http://github.com/bret/watir/commits/master/I%27ll>
>>>>>> <http://github.com/bret/watir/commits/master/I%27ll> be
>>>>>> > > updating
>>>>>> > > > the release notes for the recent changes before the final
>>>>>> release. Please
>>>>>> > > > let us know what you think and any troubles you might have.
>>>>>> 
>>>>>> > > > Cheers,
>>>>>> 
>>>>>> > > > Charley
>>>>>> 
>>>>> --
>>>>> Bret Pettichord
>>>>> Lead Developer, Watir,www.watir.com
>>>>> Blog,www.io.com/~wazmo/blog<http://www.io.com/%7Ewazmo/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: Watir 1.6.5.rc2 - release candidate available for testing

2009-11-10 Thread Bret Pettichord

Could you open up a ticket on Jira for this? You can attach images there.
http://jira.openqa.org/browse/WTR



jnxgn wrote:
> I installed the 1.6.5 after the release, chinese input and output
> still not working.
> BTW, where can I upload an image to show this.
>
> On 11月11日, 上午6时21分, Charley Baker  wrote:
>   
>> Done. I was waiting on some people, never heard back.
>>
>> -c
>> 2009/11/10 Bret Pettichord 
>>
>>
>>
>>
>>
>> 
>>> Where are we with the 1.6.5 release?
>>>   
>>> Bret
>>>   
>>> Charley Baker wrote:
>>>   
>>>> There is a change in this version for UTF-8:
>>>> 
>>> http://github.com/bret/watir/commit/466332be758a43c6045374c6c6ca03827...
>>>   
>>>> I'm honestly not sure if that's throwing you off or not. Let me know,
>>>> I was hoping to release today.
>>>> 
>>>> -c
>>>> 
>>>> 2009/11/5 jnxgn mailto:s...@jnxgn.cn>>
>>>> 
>>>> In IE, maybe it is not the problem of watir itself, but something
>>>> else.
>>>> 
>>>> On 11月6日, 上午1时59分, Charley Baker >>> <mailto:charley.ba...@gmail.com>> wrote:
>>>> > Are you still seeing this problem? Is that happening in Firefox
>>>> or IE?
>>>> 
>>>> > -c
>>>> 
>>>> > On Tue, Nov 3, 2009 at 12:34 AM, jnxgn >>> <mailto:s...@jnxgn.cn>> wrote:
>>>> 
>>>> > > After I installed the gems according to the instructions, the
>>>> Chinese
>>>> > > characters getting from and posting to web pages are messed up.
>>>> 
>>>> > > On Oct 23, 5:14 am, Charley Baker >>> <mailto:charley.ba...@gmail.com>> wrote:
>>>> > > > Hi all,
>>>> 
>>>> > > > We have a new version of Watir for testing, 1.6.5.rc2.
>>>> > > > the release is here with instructions:
>>>> > >http://wiki.openqa.org/display/WTR/Development+Builds
>>>> 
>>>> > > > If you have a chance to take a look at it, let us know.
>>>> There have been
>>>> > > a
>>>> > > > few changes since the last release candidate, most of those
>>>> are bug fixes
>>>> > > > for installation and additional fixes for tables, you can
>>>> view the git
>>>> > > > history
>>>> 
>>>> here:http://github.com/bret/watir/commits/master/I'll<http://github.com/bret/watir/commits/master/I%27ll>
>>>> <http://github.com/bret/watir/commits/master/I%27ll> be
>>>> > > updating
>>>> > > > the release notes for the recent changes before the final
>>>> release. Please
>>>> > > > let us know what you think and any troubles you might have.
>>>> 
>>>> > > > Cheers,
>>>> 
>>>> > > > Charley
>>>> 
>>> --
>>> Bret Pettichord
>>> Lead Developer, Watir,www.watir.com
>>> Blog,www.io.com/~wazmo/blog<http://www.io.com/%7Ewazmo/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: What's the difference between FireWatir1.6.5 and Watir1.6.5

2009-11-10 Thread Bret Pettichord

Here is a page that documents the differences.
http://wiki.openqa.org/display/WTR/Firewatir+Compatibility

It needs to be updated for the latest release.

Bret

Wesley Chen wrote:
> Hi, Guys,
> It is a great news that FireWatir1.6.5 is released. I tried the attach 
> and enumerate methods, that's perfect.
> I have seldom used FireWatir before this release 1.6.5.
> My project runs quite well in Watir in IE.
>
> So, I would like to ask a question.
> What's the difference between FireWatir and Watir?
> I don't ask for the inner core structure, but the difference about 
> identify the elements on the web page, such as JS pop up, buttons, new 
> window...
>
> Anything that FireWatir is beyond Watir? funfx?
> Anything FireWatir is still under construction?
>
>
> Any ideas would be quite appreciated.
>
> Thanks.
> Wesley Chen.
> For life, the easier, the better.
>
> >


-- 
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: Watir 1.6.5 is released

2009-11-10 Thread Bret Pettichord

Thanks for getting this out Charley.

This release represents about a year of work on bug releases and 
incremental improvements to Watir's support for both Firefox and IE. For 
complete details, see 
http://github.com/bret/watir/blob/master/watir/NEWCHANGES

I'm really glad that Charley agreed to take the lead in getting this 
release out the door. Big thanks also go to Jari Bakken, who provided 
numerous fixes. Other contributors to this release include Angrez Singh, 
Derek Berner, Rob Alred, Željko Filipin, Jarmo Pertman, Aidy Lewis, Alan 
Baird and many others. (If you made contributions to this release, but 
did not get credited, please let me or Charley know and we'll update the 
release notes right away.)

Bret

Charley Baker wrote:
> Hi all,
>
> We've done a lot of work for bug fixes and integration with Firefox to 
> make it more conformant to the Watir unit tests. There has been a 
> burgeoning of contributions for this release as compared to previous 
> releases, part of that due to our move to github, and another part due 
> to cleaning up and adding Firefox as a first class cititzen. It's been 
> a lot of fun to work on this release and there are many people who've 
> helped us out.
>
> This release is a lot of bugfixes, and integration and should be a 
> drop in replacement if you're using 1.6.2 currently, and highly 
> recommended as an upgrade.
>
> For more information on specific changes, please take a look at the 
> change file: /watir/NEWCHANGES, I've put most of them in that file.
>
> Please post on the list with any problems or difficulties in 
> installing the latest gems.
>
> Cheers,
>
> Charley
>
>
> >


-- 
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: Really....Ruby + Watir + Command Line

2009-11-10 Thread Bret Pettichord

My guess is that the browser is not actually on the google page at this 
point. You could use statements like this to help troubleshoot:

  puts browser.text
  puts browser.url
  puts browser.title

Bret

tester86 wrote:
> Thanks for all the help I managed to get ruby and watir all up and
> running. But I have a question, when I was using cucumber I get this
> error message and they told me to put this post in the watir group:
>
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
> `assert_exists': Unable to locate element, using :name,
> "q" (Watir::Exception::UnknownObje
> ctException)
>   from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:284:in `enabled?'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:56:in `assert_enabled'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> input_elements.rb:323:in `set'
> from script1.rb:8
>
> When you have a watir script why cannot find the text box and the
> search box for google.My script is still the same. Is there some other
> syntax that I need to use?
>
>
> >
>   


-- 
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: Really....Ruby + Watir + Command Line

2009-11-10 Thread Bret Pettichord

You posted a stack trace earlier. This is displayed after the error 
message. If you are still getting exactly the same stack trace, then you 
are still using the old version of watir. A new version of watir will 
result in a somewhat different stack trace.

You can type "set" at a command prompt to see your environment variables.

Why do you say that you don't think it is a permissions issue? To me, it 
suggests you don't have access to the document object. How do you 
interpret the error message?

Bret

tester86 wrote:
> I do not think that it is a permission an issue and I am using windows
> vista but going to be working on windows 7 soon. I do not know how to
> get a stack trace from my output. In my previous posts shows the error
> message that I get in command prompt.
>
> Question:
>
> 1. How do I check my envirnoment variables for ruby?
>
>
> On Nov 10, 9:38 am, Bret Pettichord  wrote:
>   
>> I am wondering if maybe this is a permissions problem. Are you using
>> Windows 7?
>>
>> It would help if you printed the error and stack trace that you are now
>> getting.
>>
>> Bret
>>
>>
>>
>>
>>
>> tester86 wrote:
>> 
>>> This morning I just upgraded to watir 1.6.2 and I also switched the
>>> lines but I still got the same output.
>>>   
>>> On Nov 10, 9:00 am, Jason Trebilcock 
>>> wrote:
>>>   
>>>> In a previous email, you indicate that you're running Watir 1.4.1.  But, 
>>>> the
>>>> below indicates that you're on 1.6.2.
>>>> 
>>>> In any case, I tried running your code and it worked fine. (What happens if
>>>> you switch the require 'watir' and require 'rubygems' lines? Could that be
>>>> the source of your problem? Further, do you have the variable RUBYOPT set 
>>>> in
>>>> your environment variables with the value of 'rubygems'?)
>>>> 
>>>> That is:
>>>> require 'watir'
>>>> require 'rubygems'
>>>> #require "win32ole"
>>>> 
>>>> ie = Watir::IE.new
>>>> ie.goto("http://google.com";)
>>>> 
>>>> ie.text_field(:name, "q").set("watir")
>>>> ie.button(:name, "btnG").click
>>>> 
>>>> On Tue, Nov 10, 2009 at 8:42 AM, tester86  wrote:
>>>> 
>>>>> Here is the list of my local gems (just incase its helps)
>>>>>   
>>>>> *** LOCAL GEMS ***
>>>>>   
>>>>> actionmailer (2.3.4)
>>>>> actionpack (2.3.4)
>>>>> activerecord (2.3.4)
>>>>> activeresource (2.3.4)
>>>>> activesupport (2.3.4)
>>>>> builder (2.1.2)
>>>>> camping (1.5.180)
>>>>> commonwatir (1.6.2)
>>>>> cucumber (0.4.3)
>>>>> diff-lcs (1.1.2)
>>>>> firewatir (1.6.2)
>>>>> fxri (0.3.7, 0.3.6)
>>>>> fxruby (1.6.19, 1.6.12)
>>>>> hoe (2.3.3)
>>>>> hoe-seattlerb (1.2.1)
>>>>> hpricot (0.8.2, 0.6)
>>>>> json_pure (1.1.9)
>>>>> log4r (1.1.2, 1.0.5)
>>>>> markaby (0.5)
>>>>> metaid (1.0)
>>>>> minitest (1.4.2)
>>>>> polyglot (0.2.9)
>>>>> rack (1.0.1)
>>>>> rails (2.3.4)
>>>>> rake (0.8.7, 0.7.3)
>>>>> rspec (1.2.9)
>>>>> rubyforge (2.0.3)
>>>>> rubygems-update (1.3.5)
>>>>> s4t-utils (1.0.4)
>>>>> session (2.4.0)
>>>>> sources (0.0.1)
>>>>> term-ansicolor (1.0.4)
>>>>> test-spec (0.10.0)
>>>>> treetop (1.4.2)
>>>>> user-choices (1.1.6)
>>>>> watir (1.6.2)
>>>>> win32-api (1.4.5, 1.0.4)
>>>>> win32-clipboard (0.5.2, 0.4.3)
>>>>> win32-dir (0.3.5, 0.3.2)
>>>>> win32-eventlog (0.5.2, 0.4.6)
>>>>> win32-file (0.6.3, 0.5.4)
>>>>> win32-file-stat (1.3.4, 1.2.7)
>>>>> win32-process (0.6.1, 0.5.3)
>>>>> win32-sapi (0.1.5, 0.1.4)
>>>>> win32-sound (0.4.2, 0.4.1)
>>>>> win32console (1.2.0)
>>>>> win32ole-pp (1.2.0)
>>>>> windows-api (0.4.0, 0.2.0)
>>>>> windows-pr (1.0.8, 0.7.2)
>>>>> xml-simple (1.0.12)
>>>>>

[wtr-general] Re: Watir 1.6.5.rc2 - release candidate available for testing

2009-11-10 Thread Bret Pettichord

Where are we with the 1.6.5 release?

Bret

Charley Baker wrote:
> There is a change in this version for UTF-8:
> http://github.com/bret/watir/commit/466332be758a43c6045374c6c6ca03827688e151
> I'm honestly not sure if that's throwing you off or not. Let me know,
> I was hoping to release today.
>
> -c
>
>
> 2009/11/5 jnxgn mailto:s...@jnxgn.cn>>
>
>
> In IE, maybe it is not the problem of watir itself, but something
> else.
>
> On 11月6日, 上午1时59分, Charley Baker  <mailto:charley.ba...@gmail.com>> wrote:
> > Are you still seeing this problem? Is that happening in Firefox
> or IE?
> >
> > -c
> >
> > On Tue, Nov 3, 2009 at 12:34 AM, jnxgn  <mailto:s...@jnxgn.cn>> wrote:
> >
> > > After I installed the gems according to the instructions, the
> Chinese
> > > characters getting from and posting to web pages are messed up.
> >
> > > On Oct 23, 5:14 am, Charley Baker  <mailto:charley.ba...@gmail.com>> wrote:
> > > > Hi all,
> >
> > > > We have a new version of Watir for testing, 1.6.5.rc2.
> > > > the release is here with instructions:
> > >http://wiki.openqa.org/display/WTR/Development+Builds
> >
> > > > If you have a chance to take a look at it, let us know.
> There have been
> > > a
> > > > few changes since the last release candidate, most of those
> are bug fixes
> > > > for installation and additional fixes for tables, you can
> view the git
> > > > history
> here:http://github.com/bret/watir/commits/master/I'll
> <http://github.com/bret/watir/commits/master/I%27ll> be
> > > updating
> > > > the release notes for the recent changes before the final
> release. Please
> > > > let us know what you think and any troubles you might have.
> >
> > > > Cheers,
> >
> > > > Charley
>
>
>
> >


-- 
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: Really....Ruby + Watir + Command Line

2009-11-10 Thread Bret Pettichord
;>>> On Tue, Nov 10, 2009 at 3:19 AM, tester86 
>>>>>   
>>> wrote:
>>>   
>>>>>> I am trying to run a watir script:
>>>>>> 
>>>>>> require 'watir'
>>>>>> include Watir
>>>>>> 
>>>>>> ie = Watir::IE.new
>>>>>> ie.goto("http://google.com";)
>>>>>> 
>>>>>> ie.text_field(:name, "q").set("watir")
>>>>>> ie.button(:name, "btnG").submit
>>>>>> 
>>>>>> when I run it from command line ruby filename.rb I get the following
>>>>>> error message:
>>>>>> 
>>>>>> c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing':
>>>>>> unknown proper
>>>>>> ty or method `document' (WIN32OLERuntimeError)
>>>>>>HRESULT error code:0x800706ba
>>>>>>  The RPC server is unavailable.from c:/ruby/lib/ruby/
>>>>>> site_ruby/1.8/watir.rb:1336:in `document'
>>>>>>from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in
>>>>>> `getContainerContents'
>>>>>>from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in
>>>>>> `getObject'
>>>>>>from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in
>>>>>> `initialize'
>>>>>>from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new'
>>>>>>from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in
>>>>>> `text_field'
>>>>>>from script1.rb:6
>>>>>> 
>>>>>> Any Ideas.?
>>>>>> 
>>>>> --
>>>>> Regards,
>>>>> P.Raveendranhttp://raveendran.wordpress.com-Hidequoted text -
>>>>>   
>>>>> - Show quoted text -- Hide quoted text -
>>>>>   
>>>> - Show quoted text -- Hide quoted text -
>>>> 
>> - Show quoted text -
>> 
> >
>   


-- 
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: Really....Ruby + Watir + Command Line

2009-11-09 Thread Bret Pettichord

What version of Watir are you using?

tester86 wrote:
> I am trying to run a watir script:
>
> require 'watir'
> include Watir
>
> ie = Watir::IE.new
> ie.goto("http://google.com";)
>
> ie.text_field(:name, "q").set("watir")
> ie.button(:name, "btnG").submit
>
> when I run it from command line ruby filename.rb I get the following
> error message:
>
> c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1336:in `method_missing':
> unknown proper
> ty or method `document' (WIN32OLERuntimeError)
> HRESULT error code:0x800706ba
>   The RPC server is unavailable.from c:/ruby/lib/ruby/
> site_ruby/1.8/watir.rb:1336:in `document'
> from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:754:in
> `getContainerContents'
> from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:778:in
> `getObject'
> from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3225:in
> `initialize'
> from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in `new'
> from c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:367:in
> `text_field'
> from script1.rb:6
>
> Any Ideas.?
> >
>   


-- 
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: Exception thrown while iterating table

2009-11-09 Thread Bret Pettichord

Vishal,

I will rephrase your code in a pseudo code in a way that highlights the 
problem with your code (since the error has gone unnoticed by others).

Go through each row in a table on this page,
  if the row has a Booking ID,
  Then click the search button (going to a new page)
  then go to the next row (on the old page, which is no longer in 
the browser -- hence your error)

This is a common problem that people run into. The problem, in short, is 
that if you are iterating through elements on a page, you need to stop 
iterating as soon as you click a button or do something that will cause 
a new page to be loaded.

Is this clear?

Bret


Vishal wrote:
> I am encountering exception while iterating table. Below are the
> details. Let me know if anymore information is required
>
> Code:
> table3.each do |row|
>  if table3[x][1].text =="Booking ID"
> while (input = f.gets)
>$ie.text_field(:index,2).set(input)
>$ie.button(:value,"Search").click
>report_page()
> end
>   end
>  if table3[x][1].text == "Booking Trading Partner Role and Code"
>sel_trading_partner()
>  end
> x+=1
>   end
> --
> Exception :
>
> d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/table.rb:159:in
> `invoke': u
> nknown property or method `rows' (WIN32OLERuntimeError)
> HRESULT error code:0x80070005
>   Access is denied. from d:/ruby/lib/ruby/gems/1.8/gems/
> watir-1.6.2/lib/wati
> r/table.rb:159:in `_row'
> from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> table.rb:91:in
>  `each'
> from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> table.rb:90:in
>  `upto'
> from d:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> table.rb:90:in
>  `each'
> 
> HTML Code:
>
> 
> 
> 
> 
> 
> 
>  name="Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5"
>   
>>  
>> 
>  name="Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5"
> id="resetButton" onClick="this.hasFocus=true" > 
>  name="Booking_Query449.My_Criteria_Panel3.layout0.override0.SearchButtons5"
>   
>>  
>> 
> 
> 
> 
>   Booking ID
>  VALUE=""
> NAME="Booking_Query449.My_Criteria_Panel3.layout0.override1.Booking_ID5"> TD>
> 
> 
> 
> 
> 
> 
> 
>   Booking Trading Partner Role and Code
>  valign='top'>
> 
>   
> 
>NAME="Booking_Query449.My_Criteria_Panel3.layout0.override2.Trading_Partner5.tpAndRole10.roleList0"
> SIZE="1">
> 
> Bill To
> Carrier
> Consignee
> Forwarder
> Market
>     NVO
> Ship From
> Ship To
> Supplier Contact
>   
> 
> 
>name="Booking_Query449.My_Criteria_Panel3.layout0.override2.Trading_Partner5.tpAndRole10.fetchTradePartners1"
>   
> 
>   
> 
> >
>   


-- 
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: How to install a forked gem of safariwatir from github

2009-11-09 Thread Bret Pettichord

Github used to serve up gems, but no longer is building/serving new 
gems. So you'll need to clone the repository and build/install the gem 
manually.

Hope this helps.

Bret

QAguy wrote:
> This fork off of Master seems to have the pieces I have been needing
> to overcome som of my issues:
> http://github.com/aesterline/safariwatir/commit/a1a5717775ef007c337a01482ee3faf9d5a4d8e2
>
> As I'm no expert, can someone help me by explaining how to install a
> safariwatir gem from a fork of a repo. I tried
>
> sudo gem install aesterline-safariwatir --source="http://
> gems.github.com"
>
> but get
>
> ERROR:  could not find gem aesterline-safariwatir locally or in a
> repository
>
> Thanks
> QAguy
>
> >
>   


--~--~-~--~~~---~--~~
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: Ci_reporter on watircraft

2009-11-07 Thread Bret Pettichord

Robert,

I am not in a position to support watircraft right now. A group of 
people has been in discussions with me privately with plans to take over 
support and development of watircraft. We reached an agreement, and I 
have been hoping that they'd make an announcement, but I can't speak for 
them.

Bret

robert wrote:
> Bret-
>
> Since watircraft is no longer under development, is there a work
> around?
>
> Can I disable the initialization of cucumber when running "rake spec"?
>
> -Robert
>
> On Oct 30, 12:58 pm, Bret Pettichord  wrote:
>   
>> I think the problem is thatwatircrafthas not been updated to work with
>> the latest version of cucumber.
>>
>> Bret
>>
>>
>>
>> Pals wrote:
>> 
>>> Hi Graeme,
>>> Can you tell me how did you do it for cucumber so that i can get some
>>> idea of incorporating the same inwatircraft.
>>>   
>>> Regards,
>>> Pallavi
>>>   
>>> On Sep 10, 2:53 pm, pallavi shashidhar  wrote:
>>>   
>>>> Hi,
>>>> I did update to ci_reporter 1.6.0 and at the command prompt, i give the 
>>>> foll
>>>> command:
>>>> "rake ci:setup:cucumber features" and it gives me the foll errors:
>>>> 
>>>> rm -rf features/reports
>>>> c:/ruby/bin/ruby -I 
>>>> "c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/lib;lib"
>>>> "c:
>>>> /ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/cucumber"  --require
>>>> c:/ruby/li
>>>> b/ruby/gems/1.8/gems/ci_reporter-1.6.0/lib/ci/reporter/rake/cucumber_loader
>>>>  .rb
>>>> -
>>>> -format CI::Reporter::Cucumber test/features/cc_register_complaint.feature
>>>> test/
>>>> features/cc_update_complaint.feature
>>>> test/features/cell_operator_view_complaint.
>>>> feature test/features/citizen_register_complaint.feature
>>>> test/features/citizen_u
>>>> pdate_complaint.feature test/features/citizen_view_complaint.feature
>>>> test/featur
>>>> es/city_official_login.feature
>>>> test/features/city_official_register_complaint.fe
>>>> ature test/features/city_official_update_complaint.feature
>>>> test/features/city_of
>>>> ficial_view_complaints.feature
>>>> test/features/city_official_view_status_reports.f
>>>> eature test/features/GO_update_complaint.feature
>>>> test/features/GO_update_users_c
>>>> omplaint.feature test/features/official_change_password.feature
>>>> undefined method `testcases' for nil:NilClass (NoMethodError)
>>>> c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.0/lib/ci/reporter/rake/../..
>>>>  /../c
>>>> i/reporter/cucumber.rb:93:in `visit_step'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step
>>>>  _coll
>>>> ection.rb:15:in `accept'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step
>>>>  _coll
>>>> ection.rb:14:in `each'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step
>>>>  _coll
>>>> ection.rb:14:in `accept'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visi
>>>>  tor.r
>>>> b:75:in `visit_steps'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/back
>>>>  groun
>>>> d.rb:30:in `accept'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visi
>>>>  tor.r
>>>> b:49:in `visit_background'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/feat
>>>>  ure.r
>>>> b:23:in `accept'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visi
>>>>  tor.r
>>>> b:23:in `visit_feature'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/feat
>>>>  ures.
>>>> rb:25:in `accept'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/feat
>>>>  ures.
>>>> rb:13:in `each'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/feat
>>>>  ures.
>>>> rb:13:in `each'
>>>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/feat
>>>&g

[wtr-general] Re: Answering incomplete requests

2009-11-03 Thread Bret Pettichord

Željko Filipin wrote:
> On Tue, Nov 3, 2009 at 5:24 PM, Bret Pettichord  <mailto:b...@pettichord.com>> wrote:
> > If you personally think it
> > is better and would prefer using it, you can tell people that that is
> > the best way to get an answer from you.
>
> Stack Overflow is to this group like Git is to trying to remember what 
> you have changed in your code and not using version control.
>
> I will do my best to answer any question tagged watir in Stack 
> Overflow. I am not sure how I would advertise that.
I think we need a page called "Support" at http://watir.com/

It should include Watir General, IRC, Jira and Stack Overflow. Some of 
this stuff is on the community page already. Maybe the community page 
could focus a little more on how to help (rather than get help).

I also think you are getting frustrated with some of the questions here. 
I suggest that you see if maybe you can just reply less to requests that 
annoy you. That's what I'm doing.

Bret

--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-11-03 Thread Bret Pettichord

Željko Filipin wrote:
> On Tue, Nov 3, 2009 at 2:00 AM, b...@pettichord.com 
>   > wrote:
> > I guess for now, I would say that people should be told that they can
> > post questions in either location. There are very few people actually
> > answering watir questions on stackoverflow right now. Basically it is
> > just you Zeljko, although I did see Mark A make an appearance.
>
> I am afraid if we do not push it, that change will not happen. I will 
> add Stack Overflow to support in the next few days, and we will see if 
> it picks up in the following weeks and months.
We've been teaching the larger community to ask questions here for 
years. If you ask a Watir question on one of the Ruby forums, you will 
likely be sent here.

I'm still trying to understand the pros and cons of stack overflow. 
You've convinced me to spend more time there. If you personally think it 
is better and would prefer using it, you can tell people that that is 
the best way to get an answer from you.

Bret

--~--~-~--~~~---~--~~
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 Bret Pettichord

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


-- 
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: Ci_reporter on watircraft

2009-10-30 Thread Bret Pettichord

I think the problem is that watircraft has not been updated to work with 
the latest version of cucumber.

Bret

Pals wrote:
> Hi Graeme,
> Can you tell me how did you do it for cucumber so that i can get some
> idea of incorporating the same in watircraft.
>
> Regards,
> Pallavi
>
> On Sep 10, 2:53 pm, pallavi shashidhar  wrote:
>   
>> Hi,
>> I did update to ci_reporter 1.6.0 and at the command prompt, i give the foll
>> command:
>> "rake ci:setup:cucumber features" and it gives me the foll errors:
>>
>> rm -rf features/reports
>> c:/ruby/bin/ruby -I "c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/lib;lib"
>> "c:
>> /ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/cucumber"  --require
>> c:/ruby/li
>> b/ruby/gems/1.8/gems/ci_reporter-1.6.0/lib/ci/reporter/rake/cucumber_loader.rb
>> -
>> -format CI::Reporter::Cucumber test/features/cc_register_complaint.feature
>> test/
>> features/cc_update_complaint.feature
>> test/features/cell_operator_view_complaint.
>> feature test/features/citizen_register_complaint.feature
>> test/features/citizen_u
>> pdate_complaint.feature test/features/citizen_view_complaint.feature
>> test/featur
>> es/city_official_login.feature
>> test/features/city_official_register_complaint.fe
>> ature test/features/city_official_update_complaint.feature
>> test/features/city_of
>> ficial_view_complaints.feature
>> test/features/city_official_view_status_reports.f
>> eature test/features/GO_update_complaint.feature
>> test/features/GO_update_users_c
>> omplaint.feature test/features/official_change_password.feature
>> undefined method `testcases' for nil:NilClass (NoMethodError)
>> c:/ruby/lib/ruby/gems/1.8/gems/ci_reporter-1.6.0/lib/ci/reporter/rake/../../../c
>> i/reporter/cucumber.rb:93:in `visit_step'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll
>> ection.rb:15:in `accept'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll
>> ection.rb:14:in `each'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/step_coll
>> ection.rb:14:in `accept'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r
>> b:75:in `visit_steps'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/backgroun
>> d.rb:30:in `accept'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r
>> b:49:in `visit_background'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/feature.r
>> b:23:in `accept'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r
>> b:23:in `visit_feature'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features.
>> rb:25:in `accept'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features.
>> rb:13:in `each'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features.
>> rb:13:in `each'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/features.
>> rb:24:in `accept'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/ast/visitor.r
>> b:19:in `visit_features'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r
>> b:9:in `__send__'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r
>> b:9:in `method_missing'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r
>> b:8:in `map'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/broadcaster.r
>> b:8:in `method_missing'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/cli/main.rb:5
>> 8:in `execute!'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/../lib/cucumber/cli/main.rb:2
>> 6:in `execute'
>> c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.3.91/bin/cucumber:9
>> rake aborted!
>> Command failed with status (1): [c:/ruby/bin/ruby -I
>> "c:/ruby/lib/ruby/gems...]
>>
>> (See full trace by running task with --trace)
>>
>> Is the usage for rake features correct?
>>
>> Regards,
>> Pallavi
>>
>> On Thu, Sep 10, 2009 at 3:14 PM, Graeme Mathieson, Rubaidh Ltd <
>>
>> mat...@woss.name> wrote:
>>
>> 
>>> Hi,
>>>   
>>> Our changes to ci_reporter to support cucumber output have been merged
>>> back into Nick's upstream version, and released as 1.6.0. No idea why
>>> it's not showing up in the master branch, though!
>>>   
>>> We're still using the XML output from ci_reporter for cucumber and
>>> rspec features, and it's working well for us. If you have any problems
>>> getting it set up, give me a yell and I'll see if I can help.
>>>   
>>> Cheers,
>>>   
>>> Graeme.
>>>   
>>> On Sep 9, 5:43 pm, Charley Baker  wrote:
>>>   
 It appears there's a forked version of ci_reporter on github that adds
 support for cucumber output, find out more here:
 
>>> http://github.com/rubaidh/ci_reporter/tree/master I'm not using
>>>   
 ci_reporter an

[wtr-general] Re: Answering incomplete requests

2009-10-30 Thread Bret Pettichord

Good suggestion. I just set up a login for that site and will start 
spending more time there.

Bret

Željko Filipin wrote:
> I have been thinking about this for a long time, and it just came to 
> me that it is related to this thread. I think the time has come to 
> take Watir support to the next level.
>
> Have you heard about site called Stack Overflow? I use it all the 
> time. Created by Jeff Atwood and Joel Spolsky. If you do not know who 
> they are just google them.
>
> How it works? You log in with openid, ask question, tag it with watir. 
> There is a feed for the tag. We subscribe to the feed and answer 
> questions.
>
> It is the future of support. It is a very useful merge of support 
> forum, digg and wiki with features like tagging questions, closing 
> duplicate questions (with link to original question), voting on good 
> questions and answers (so good and interesting questions and answers 
> float to the top). Since it is also a wiki, questions and answers can 
> be edited (including adding and removing tags). When you type a title 
> for the question and start typing the body, it automatically searches 
> the site and displays similar questions under the title. Just what we 
> need. No more "please search before you ask". The site searches for you.
>
> There are some watir questions already there, but not much. I have put 
> some to try things out:
>
> http://stackoverflow.com/questions/tagged/watir
> http://stackoverflow.com/questions/tagged/firewatir
>
> Watin folks use it much more:
>
> http://stackoverflow.com/questions/tagged/watin
>
> You get points for each up vote you get. There are also badges. Makes 
> answering questions more like a game.
>
> There is added benefit. If we get a question that is for example more 
> ruby related, we can tag it with ruby (if it is not already tagged) 
> and then all users that follow that tag will see it and probably answer.
>
> We could close this group, or leave it only for discussion, and move 
> all support to Stack Overflow. We could make this group moderated, and 
> approve only discussion posts, and reject all support with a note to 
> post ti to Stack Overflow. If we agree on that, I volunteer to do that 
> for the next month, and probably longer if needed.
>
> More information:
>
> http://stackoverflow.com/
> http://blog.stackoverflow.com/
> http://blog.stackoverflow.com/category/podcasts/
> http://en.wikipedia.org/wiki/Stack_Overflow
>
> If anybody wants to know more about it, just ask. If this is not 
> appropriate place to talk about it, sent your question to me directly.
>
> What do you think? Has the time to move come? Or do you think we 
> should stay here for now?
>
> Željko
>
> >


--~--~-~--~~~---~--~~
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-10-29 Thread Bret Pettichord

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).
> See http://jira.openqa.org/browse/WTR-2 for 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: Watir 1.6.5.rc2 - release candidate available for testing

2009-10-29 Thread Bret Pettichord

I don't know why you are doing "require 'firewatir/container'".

Bret

Shlomit Gazit wrote:
> Any idea?
>
> On Oct 27, 3:23 pm, Shlomit Gazit  wrote:
>   
>> require 'rubygems'
>> require 'firewatir/container' <-- the problematic line
>> require 'watir/browser'
>>
>> On Oct 27, 2:44 pm, Bret Pettichord  wrote:
>>
>> 
>>> Can you share the code that is failing? Specifically the code on and
>>> around line 7 of
>>> /Users/shlomit/workspaces/trunk/ff_c2p_watir/ff_c2p_test_issues_2_menus_dev.rb
>>>   
>>> ShlomitGazit wrote:
>>>   
>>>> After upgrading I am getting the error:
>>>> 
>>>> /Users/shlomit/.gem/ruby/1.8/gems/firewatir-1.6.5.rc2/lib/firewatir/
>>>> container.rb:46: uninitialized constant
>>>> FireWatir::Container::JsshSocket (NameError)
>>>>from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
>>>> `gem_original_require'
>>>>from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
>>>> `require'
>>>>from /Users/shlomit/workspaces/trunk/ff_c2p_watir/
>>>> ff_c2p_test_issues_2_menus_dev.rb:7
>>>> 
>>>> When starting running a test.
>>>> 
>>>> On Oct 23, 2:36 am, Željko Filipin 
>>>> wrote:
>>>> 
>>>>> On Thu, Oct 22, 2009 at 11:14 PM, Charley Baker 
>>>>> wrote:
>>>>>   
>>>>>>  We have a new version of Watir for testing, 1.6.5.rc2.
>>>>>> 
>>>>> I just did upgrade from 1.6.2 and everything works fine so far.
>>>>>   
>>>>> Željko
>>>>> --http://watirpodcast.com/
>>>>>   
> >
>   


--~--~-~--~~~---~--~~
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: Watir, AutoIT, Window Title and Regular Expression

2009-10-29 Thread Bret Pettichord

My guess is that AutoIt has been updated since it was originally 
packaged with Watir. AutoIt itself is not open-source software, so we 
have to look at licensing issues before updating what we use.

Bret

Jarmo Pertman wrote:
> Why on earth has it done like that?!? Any good reasons why not to
> include AutoIT with full functionality? Anyone?
>
> Seems silly to do that silently and i see it just as a one more source
> of possible nasty problems and debugging.
>
> Jarmo
>
> On Oct 29, 11:10 am, Željko Filipin 
> wrote:
>   
>> On Thu, Oct 29, 2009 at 8:04 AM, Pallavi Sharma 
>> wrote:> Watir auto it implementation is not working if i use the REGEXPTITLE 
>> of
>>
>> auto it with it. The same script written directly in AutoIT works although.
>>
>> I have played with autoit a few months ago, also trying to use regular
>> expressions. Watir installs a smaller version of autoit, that has only a
>> subset of full autoit functionality, and egular expression support is not
>> there.
>>
>> Željko
>> --
>> watir.com - community manager
>> watirpodcast.com - host
>> 
> >
>   


--~--~-~--~~~---~--~~
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: Multiple "select_list"(s) with the same name

2009-10-28 Thread Bret Pettichord

This should also work

ie.select_list(:name => "select", :after? => ie.h2(:text, "Fine 
Art")).set("Drawing - In A Day")

Bret

Pallavi Sharma wrote:
> Have you tried multiple attributes and used index??
>
>
> ie.select_list(:name =>  "select", :index => 2).set("Drawing - In A Day")
>
> Try this. It should solve the issue.
>
> --
> Pallavi
>
> On Wed, Oct 28, 2009 at 7:38 AM, Ben  > wrote:
>
>
>
>
>
> Below is a sniplet of the  code of the web page.  I 'm trying to
> test.
> How can I select the option from the second list, the 'Fine Art'
> section using WATIR?
>
> For example
>
> ie.select_list(:name,  "select").set("Drawing - In A Day")
>
> WATIR wont let me because the system is looking at the list from the
> 'Craft' section. Thanks for your help.
>
>
> Craft
> Some text 
>  selected>*** CHOOSE ***
> Candle Making
> Doll Making
> Glass Kiln Forming & Fusing
> Jewellery - Wirework
> 
>
> Fine Art
> Some text.
>  selected>*** CHOOSE ***
> Art - Folio Preparation
> Drawing - Basics
> Drawing - Caricatures
> Drawing - In A Day
> Drawing - Pastels
> Trompe L'Oeil Mural Illusion
> 
>
>
>
>
>
>
>
> >


--~--~-~--~~~---~--~~
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: Watir 1.6.5.rc2 - release candidate available for testing

2009-10-27 Thread Bret Pettichord

Can you share the code that is failing? Specifically the code on and 
around line 7 of 
/Users/shlomit/workspaces/trunk/ff_c2p_watir/ff_c2p_test_issues_2_menus_dev.rb

Shlomit Gazit wrote:
> After upgrading I am getting the error:
>
> /Users/shlomit/.gem/ruby/1.8/gems/firewatir-1.6.5.rc2/lib/firewatir/
> container.rb:46: uninitialized constant
> FireWatir::Container::JsshSocket (NameError)
>   from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
> `gem_original_require'
>   from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
> `require'
>   from /Users/shlomit/workspaces/trunk/ff_c2p_watir/
> ff_c2p_test_issues_2_menus_dev.rb:7
>
> When starting running a test.
>
>
>
> On Oct 23, 2:36 am, Željko Filipin 
> wrote:
>   
>> On Thu, Oct 22, 2009 at 11:14 PM, Charley Baker 
>> wrote:
>>
>> 
>>>  We have a new version of Watir for testing, 1.6.5.rc2.
>>>   
>> I just did upgrade from 1.6.2 and everything works fine so far.
>>
>> Željko
>> --http://watirpodcast.com/
>> 
> >
>   


--~--~-~--~~~---~--~~
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: How to get browser instance from inside an element?

2009-10-27 Thread Bret Pettichord

There is a "page_container" instance variable that will contain a 
reference to the browser, or the frame, if the object is in a frame.

Bret

Yuriy wrote:
> I have a custom click method in Element class which use pure Win32API
> call and needs the IE window to be in input focus. When I ran the
> scripts on remote desktop(and reduce remote desktop window) it looses
> its input focus so I need to bring the target IE window to front in
> order to make it working correct. But...it appeared that workaround
> wouldn't help :) - I gave it a try but it didn't work out. I also
> tried to set webserver on the remote machine and run the script by
> HTTP-request without using remote desktop. Though this didn't help
> either because remote PC is locked when the scripts are running(I mean
> the Ctrl+Al+Del lock) and has no proper input focus either. So now I
> need to release the lock somehow before start running the script...
> BTW has anyone released the lock by AutoIt or something before?
>
> On Oct 26, 7:27 pm, Ethan  wrote:
>   
>> For me, I was working around problems I was having with FileField#set in
>> IE8, and I ended up just rewriting the #set method. For my implementation, I
>> needed the hWnd of the FileField's browser, so I just iterated up through
>> the @containers to find the browser.
>>
>> -Ethan
>>
>> On Mon, Oct 26, 2009 at 13:09, Charley Baker wrote:
>>
>> 
>>> Good question, I'm actually somewhat curious as well as to the use case. :)
>>>   
>>> -c
>>>   
>>> On Mon, Oct 26, 2009 at 11:07 AM, Paul Rogers  wrote:
>>>   
 can you explain why you need this?
 
 Paul
 
 On Mon, Oct 26, 2009 at 9:46 AM, Yuriy  wrote:
 
> Thanks a lot, Ethan!
>   
> On Oct 26, 4:33 pm, Ethan  wrote:
>   
>> Unfortunately, there doesn't seem to be. I have run into this, and what
>> 
> I
>   
>> ended up doing was to iterate up through the containers until I found
>> 
> the
>   
>> browser. something along the lines of:
>> 
>> browser=some_div
>> while browser && !browser.is_a?(Watir::IE)
>>   browser=browser.instance_variable_get('@container')
>> end
>> 
>> pretty ugly.
>> 
>> On Mon, Oct 26, 2009 at 08:30, Yuriy  wrote:
>> 
>>> Hi all,
>>> is there any way I can get browser instance from inside an element?
>>> Here is what I mean by that:
>>> ie_instance = IE.new
>>> some_div = ie.div(:any, 'any')
>>> some_div.a_method_to_get_browser_instance  # <--- this is an assumed
>>> method which would return the ie_instance
>>>   
>>> Thanks.
>>>   
> >
>   


--~--~-~--~~~---~--~~
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: "!assert" doesn't work in in Unit Test.

2009-10-27 Thread Bret Pettichord

de Villamil Frédéric wrote:
> To have a negative assert working (mostly on non visible elements),  
> I've been using the following:
>
> assert true == false if 
>
> Not the best way to do it I guess, but works like a charm.
> Regards
>   

These will also do the same thing:

assert false if ...
assert !(...)

--~--~-~--~~~---~--~~
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: file_field in File Upload dialog

2009-10-26 Thread Bret Pettichord

H Kogi wrote:
>
> I may be missing something very simple.  When I get window's File 
> Upload dialog, how can I identify file_field's i.e. id, name, index, 
> etc?  (index did not work).  I looked in to the the following site and 
> all the links from there but not finding answers. 
>
> http://wiki.openqa.org/display/WTR/File+Uploads

http://wiki.openqa.org/display/WTR/Watir+Methods+Supported+by+HTML+Element

-- 
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: Can't install Watir on latest Ruby one-click installer

2009-10-26 Thread Bret Pettichord

No. I think Aslak is running the new Technology Preview of the one-click 
installer. They are using the ming32 compiler instead of Visual Studio.
http://rubyforge.org/frs/?group_id=167&release_id=38052

This sounds like an issue. We're also going to need to recompile Watir's 
support for modal dialogs.

Bret


Charley Baker wrote:
> Hey Aslak,
>
>Missed seeing you this year at Agile. :) Thanks for the details, 
> responses inline
>
> On Mon, Oct 26, 2009 at 9:48 AM, Aslak Hellesøy 
> mailto:aslak.helle...@gmail.com>> wrote:
>
>
> I realisesd I had a rather old Ruby in my previous post, so I
> installed the newest Ruby One-Click installer (1.8.6):
>
>
> I believe you were using p111 on 186 and Watir 1.6.2 according to the 
> gist. I'm using the same versions of everything you posted - also on a 
> VM for my Mac, and 10+ vms that we're using for test boxes as well as 
> 70 odd qa engineers. I haven't seen that error.
>
> In most of the requests I found when searching for that error tends to 
> be related to COM requests being hosed by Windows. I hate to ask the 
> obvious, but did you restart your VM?
>
> You might follow Zeljko's instructions on installing the latest rc 
> gems, though I doubt that would help since nothing has changed in the 
> IE process invocation.
>  
>
>
> > ruby --version
> ruby 1.8.6 (2009-08-04 patchlevel 383) [i386-mingw32]
>
> This Ruby version doesn't come with the win32* gems installed, so when
> I try to gem install watir it wants to install win32-api.
>
> Now, this gem won't install - it tries to compile the win32-api gem's
> C code, and since I don't have Visual Studio that fails.
>
> The only prebuilt win32-api gem is win32-api-1.4.5-x86-mswin32-60.gem
> (http://rubyforge.org/frs/?group_id=85&release_id=38337
> ) - which
> won't
> install since it's not built for mingw32 (which is what Ruby is built
> with).
>
> Result: I can't use Watir with the latest 1.8.6 One click installer.
>
>
> There is a dev package that you can use with the one click installer 
> that will build the win32* and associated windows gems. I haven't 
> tried it yet, but it is on the download page. I've been half following 
> Luis' progress on the next one click, need to get more involved with 
> that and make sure with our dependencies we can work with the new 
> installer. Spent some time with pik as well to manage the deps; 
> hopefully I'll have a bit more spare time to work on that soon.
>  
>
> The same problem applies to ruby 1.9.1p243 (2009-07-16 revision 24175)
> [i386-mingw32] (Latest Ruby 1.9 one-click installer).
>
>
> This is similar to the above issue. Jari Bakken has made some changes 
> in Watir to work with 1.9.1, which are in the rc2 gems Zeljko 
> mentioned. One of current requirements is user-choices by Brian 
> Marick, which doesn't work on 1.9.1, sent him a mail about moving the 
> code over to github.
>
>
> Let me know how it goes, happy to help troubleshoot this.
>
> -c
>  
>
>
> So what to do? What Ruby versions do people use to get Watir installed
> and working?
>
> Cheers,
> Aslak
>
>
>
> >


--~--~-~--~~~---~--~~
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: Does WATIR will work on Silverlight and Ajax technologies?

2009-10-26 Thread Bret Pettichord

Shaik Mohammed Firoz wrote:
> Does WATIR will work on Silverlight and Ajax technologies?
>  
Ajax: yes. Silverlight: i don't think so.

--~--~-~--~~~---~--~~
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: FireWatir Issue with Regular expressions

2009-10-26 Thread Bret Pettichord

I'm wondering if the problem might be traced to a plugin?

--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-10-25 Thread Bret Pettichord

Jari Bakken wrote:
> On Fri, Oct 23, 2009 at 10:01 PM, Ethan  wrote:
>   
>> Perhaps a wiki page on what information is needed from people in order for
>> them to get help - the initial response could just be a link to that page,
>> and if they don't reply with information that generally conforms to what is
>> required, it gets ignored.
>>
>> 
>
> I totally agree with this. Check out the "Before you ask" section
> here: http://wiki.github.com/aslakhellesoy/cucumber/get-in-touch
>
>   
I really like the tone of that page. Maybe we could modify our support 
page to sound a little more like this.

Bret


-- 
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: Error occured while working with firefox browser

2009-10-25 Thread Bret Pettichord

There was also a warning on the page that said that you could not run 
the unit tests from a gem installation.

Since this meant that step 4 would never work, however, i decided to 
remove step 4 (and the warning) from the page.

Bret

rrash586 wrote:
> Hi All,
>
> I want to use Firefox browser for testing one of the webpplication.
> But after following all the steps mentioned on link mentioned below
>
> http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-4%29%28Optional%29RunFireWatirunittests
>
> 1) Install the FireWatir Gem
> 2) Install the JSSH Firefox Extension
> 3) Ensure Firefox settings are correct
> 4) (Optional) Run FireWatir unit tests
>
> but when i execute the 4 th steps i am getting following error
>
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require': no such file to load -- unittests/setup/lib
> (LoadError)
>   from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>   from C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/
> setup.rb:15
>   from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>   from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>   from mozilla_all_tests.rb:3
>
>
> I am not getting what is the exact error.
>
> I tried the sample script mentioned in one of the jssh post which are
>
> 1.require 'watir'
> Watir.options[:browser]='firefox'
> ff=Watir::Browser.new
> ff.goto ('www.google.com')
>
> 2.
> require 'firewatir'
> system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -jssh")
> sleep(5)
> $ie = FireWatir::Firefox.new
> $ie.goto("google.com")
> puts $ie.title
>
> 3.
> require 'firewatir'
> system("C:\\Program Files\\Mozilla Firefox\\firefox.exe -jssh")
> sleep(5)
> $ie = FireWatir::Firefox.attach(:title,"Google")
> $ie.goto("google.com")
> puts $ie.title
>
>
> in all the above three cases firefox browser opened but the execution
> of the script hanged and script not navigate to proper url i.e to
> www.google.com
>
> I am using Firefox 3.0.10 and FireWatir 1.6.2
>
> Please tell me if anything or any steps i am missing or what the exact
> problem and how can i overcome the same .
>
> Thanks in advance
> >
>   


-- 
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] READ BEFORE POSTING QUESTIONS

2009-10-23 Thread Bret Pettichord

Click this link and read it.

http://wiki.openqa.org/display/WTR/Support

--~--~-~--~~~---~--~~
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: `method_missing': unknown property or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba

2009-10-23 Thread Bret Pettichord

LaurenL wrote:
> puts " Is there another order to ack?"
> while b.link(:name, 'ack_0').exists?
> puts "There is another order to Ack"
> b.link(:name, 'ack_0').click
> b.button(:name, "oms/util/SendOrderAckDroplet.sendOrderAck").click
> b.refresh
> sleep 3
> end
>
>   
What happens after you click the button? Does the window close? That 
will cause the "while b.link..." code to fail, because "b" doesn't exist 
any more.

Bret


--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-10-23 Thread Bret Pettichord

Bret Pettichord wrote:
> Jason Trebilcock wrote:
>   
> Check out the top paragraph here: 
> http://groups.google.com/group/watir-general
>
> Bret
>
>   
The "guidelines" link was broken. I just fixed it. Maybe that will help.


--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-10-23 Thread Bret Pettichord

Jason Trebilcock wrote:
> Seems to me, if we're receiving 'incomplete requests', then maybe 
> there's a way to drive towards more complete requests.
>
> In the LoadRunner forum on SQAForums, they're pretty militant about 
> getting environment information upfront before they'll answer questions.
>
> Maybe if we adopted some sort of a set of questions to be answered, 
> then we might get some more thorough questions and be better able to 
> provide answers.
>
> Something akin to:
> Ruby version:
> Watir version:
> OS/browser versions:
> Code:
> HTML:
> What's wrong/not working/whatever (how 'bout an error message?):
>
> Granted, there are some questions (and/or people) for whom this might 
> be a little ridiculous...but it could make for an easy template to 
> spit back at the incomplete request.
>
> Like you said, it really isn't terribly different from someone logging 
> a defect/enhancement/whatever. So a little pushback, I think, might 
> get things moving in a better direction.
I guess it feels like "a little pushback" is what we are doing now, 
without much effect.
Check out the top paragraph here: 
http://groups.google.com/group/watir-general

Bret


--~--~-~--~~~---~--~~
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: Answering incomplete requests

2009-10-23 Thread Bret Pettichord

Chris wrote:
>
> one option might be to emulate the Perl community of the time and
> start a 'watir-beginners' list, with a commitment from some veterans
> to spend time there, but emphasize that it is a list for newbies to
> help each other.
Any one interested in doing this?

--~--~-~--~~~---~--~~
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] Answering incomplete requests

2009-10-23 Thread Bret Pettichord

This is a note to those of you who are answering other people's 
questions here. The rest of you can stop reading.

Really. If you stay I'll just hurt your feelings.

Ok. We need to have a frank discussion. We're getting a lot of crappy 
questions.

There are a lot of requests for help coming in where the requester is 
posting way too little information for any one to possibly help them. 
And what's worse, you ask for more info and they reply with a lot of 
blather, but don't actually give you the information that we need to 
answer their questions.

I've been getting sucked into this myself lately. I feel bad for them. I 
want to help. "When you say it doesn't work, are you getting an error 
message?" How many times do we need to ask this here? And then they 
reply, telling us they tried something else, but it didn't work either, 
and they still don't give us an error message! Or they give us just part 
of the error message. Or they leave out the stack trace. I guess they 
assume that because the stack trace looks like a bunch of gibberish, it 
won't help us either. You'd almost think that maybe they don't know 
anything about testing software or how to write a bug report.

I learned how to extract a stack trace from a core file 20 years ago so 
that I could include it in my bug reports. With Ruby it just gets 
printed out. It's just a matter of cut and paste.

"Can we see your script?". "Have you read the FAQ?" "What have you 
tried?" -- How many times do we have to ask these questions?

What can we do about it?

1. Stop responding to incomplete requests. Maybe they will repost with 
more information. Maybe not. Anyway, just ignore them.
2. Humiliate them and question their right to claim to be a tester if 
they can't even report a problem correctly. Make it clear that Watir is 
only for testers who have some basic competence.
3. What else?

Bret

-- 
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: Not Able to Use Rspec framework

2009-10-23 Thread Bret Pettichord

abhisheksreepal wrote:
> include Watir::Container
>   

Don't do this.


--~--~-~--~~~---~--~~
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: ohloh.net/p/watir

2009-10-22 Thread Bret Pettichord

Željko Filipin wrote:
> I have spent some time with this today:
>
> http://www.ohloh.net/p/watir
>
> Take a look. Some interesting statistics about Watir project.
This is interesting. You might be interested to see the list of 
contributors. Please note, however, that I get credit for much of 
Angrez's work because I committed most of his contributions.
https://www.ohloh.net/p/watir/contributors

Bret


--~--~-~--~~~---~--~~
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: `method_missing': unknown property or method `document' (WIN32OLERuntimeError) HRESULT error code:0x800706ba

2009-10-22 Thread Bret Pettichord

Can you show us this code?

C:/ruby/qa_scripts/OMS/testOrderAck.rb:41

Bret



LaurenL wrote:
> About two weeks ago I stopped being able to run all watir scripts on
> my machine.  I have not updated or changed anything.  The same scripts
> run on a different computer, so I know its not the script.  I was
> wondering if anyone had any ideas on what I could try.
>
> The IE6 browser opens but crashes as soon as the script calls the url.
> This is the error I'm receiving.
>
> C:\ruby\qa_scripts\OMS>testOrderAck.rb
> Beginning of test: OrderAck.
>  Step 1: go to the site:
>  Step 2: Go to OrderAck.jsp .
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> 447:in `method_
> missing': unknown property or method `document' (WIN32OLERuntimeError)
> HRESULT error code:0x800706ba
>   The RPC server is unavailable.from c:/ruby/lib/ruby/gems/1.8/
> gems/wati
> r-1.6.2/lib/watir/ie-class.rb:447:in `document'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> locator.rb:31:
> in `each_element'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> locator.rb:38:
> in `locate'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> container.rb:7
> 49:in `locate_tagged_element'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> link.rb:24:in
> `locate'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:49:
> in `assert_exists'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:284
> :in `enabled?'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:56:
> in `assert_enabled'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:229
> :in `click!'
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> element.rb:215
> :in `click'
> from C:/ruby/qa_scripts/OMS/testOrderAck.rb:41
>
> Thanks.
> ~L
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> >
>   


--~--~-~--~~~---~--~~
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: Sai

2009-10-22 Thread Bret Pettichord

Paul Rogers wrote:
> until I read that I thought I was still an active member of watir, 
> even though I cant remember the last time I did a check in ;-(
You made one commit on October 2008. Before that your previous commit 
was August 2005.
http://github.com/bret/watir/graphs/impact


--~--~-~--~~~---~--~~
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: Team (was: Sai)

2009-10-22 Thread Bret Pettichord

I think the problem is with the title. The first group are the "Core 
Developers" not "Developers"

The core team of developers is the group of people actively working on 
the release of new versions of Watir. These people add significant 
features and commit many features contributed by others. I have listed 
this group before on this list. The people who have been active core 
developers of Watir/FireWatir over the past year are:

Bret Pettichord
Charley Baker
Angrez Singh
Jari Bakken

This is evidenced by the commit logs.

I think it is confusing to just call these people "developers" because 
there are lots of people who contribute code to watir. I would like us 
to recognize the core developers for the significant time and energy 
that they have put into the project.

Bret


Željko Filipin wrote:
> On Thu, Oct 22, 2009 at 10:18 AM, Željko Filipin 
> mailto:zeljko.fili...@wa-research.ch>> 
> wrote:
> > Anybody do not think it would be a good idea?
>
> This should be:
>
> Anybody thinks it would not be a good idea?
>
> Željko
>
> >


--~--~-~--~~~---~--~~
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: After upgrading to Watir 1.6.2, it is not working fine.

2009-10-21 Thread Bret Pettichord

Željko Filipin wrote:
> > I'm using the latest release candidate of Ruby 1.8.6-27 on a PC
>
> I do not think that is the problem, but http://watir.com/installation/ 
> says: "We recommend using Ruby 1.8.6-26 with Watir 1.6."
>
> Željko
Zeljko,

We say this because of a click-no-wait bug in 1.8.6-27. FYI, this bug is 
fixed in watir 1.6.5 (forthcoming).

Bret

-- 
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: cannot register window class in IE8

2009-10-21 Thread Bret Pettichord

I haven't heard of this. Can your provide a stack trace and complete 
error message?

Bret

aidy lewis wrote:
> Hi,
>
> Has anyone received 'cannot register window class' errors when running
> Watir tests in IE8?
>
> Aidy
>
>   


-- 
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: How to access methods from Modules

2009-10-21 Thread Bret Pettichord

I don't know if any one is using it any more.

Bret

Tiffany Fodor wrote:
> Hi!
>
> You don't need this line:
>  s = Watir::Simple
>
> Your assert should read:
> ie.assert_text_in_body("Please enter your Username",nil)
>
> (the second parameter, 'nil' is optional, so you could leave it out).
>
> I just did some searching and found that you need to include
> Watir::Simple, but the discussions I found on that date back to
> 2005-2006.  I gave it a shot in an irb session and found that the
> watir_simple methods were only available after I did the include, but
> then I got a different error when I tried to use it:
>
> NameError: uninitialized class variable @@browser in Watir::Simple
> from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> watir_simple.r
> b:276:in `assert_text_in_body'
> from (irb):12
>
> Is anyone else using watir_simple?  I didn't even know it existed
> (guess I should have looked around more!).  Is it still supported?
>
> In the mean time, you can do a simple check to see if the text exists
> like this:
>
> ie.text.include?('Please enter your Username')
>
> If you need to perform assertions, you might want look into using
> RSpec or Test::Unit.
>
> Hope this helps!
>
> -Tiffany
>
> On Oct 21, 10:02 am, abhisheksreepal 
> wrote:
>   
>> Hi,
>>
>> I have just started learning Watir.
>> Please let me know what is wrong
>>
>> require 'test/unit'
>> require "watir"
>> require 'watir/testcase'
>> require 'watir/watir_simple'
>>
>> class Login < Watir::TestCase
>> def test_login
>>   ie=Watir::Browser.new
>>  s = Watir::Simple
>>   ie.goto("google.com")
>>   ie.link(:href,"some_link1").click
>>   ie.link(:href,"some_link2").click
>>   s.assert_text_in_body("Please enter your Username",nil)
>> end
>>   end
>>
>> OUTPUT:
>>
>>  1) Error:
>> test_login(Login):
>> NoMethodError: undefined method `assert_text_in_body' for
>> Watir::Simple:Module
>> test.rb:14:in `test_login'
>> 
> >
>   


-- 
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: Capturing Java Script Errors

2009-10-20 Thread Bret Pettichord

Pallavi,

Thanks for posting that. This is new to me, but it looks like a good 
solution.

Bret

Pallavi Sharma wrote:
> Hi Everyone
>
> I found this 
> link: 
> http://exploretesting.blogspot.com/2008/09/reporting-ie-js-error-messages-in-watir.html
>
> for reporting JS error, has anyone here tried this.
>
>
> Also please let me know if the alert message for JS in the browser is 
> off, is there a way i can still detect the error in the browsers?
>
> Please let me know.
>
>
> Thanks
>
> Pallavi.
>
> On Sun, Oct 18, 2009 at 1:51 AM, Alan Baird  <mailto:aba...@bairdsnet.net>> wrote:
>
> Jarmo -
>
> I would be interested in seeing an example of your Formatter.  I
> know there is one already out there from the RSpec team, but if
> you have something different and the time I think it would make a
> great blog post or addition to the wiki.
>
> Alan
>
>
> On Fri, Oct 16, 2009 at 4:44 AM, Jarmo Pertman  <mailto:jarm...@gmail.com>> wrote:
>
>
> We are using RSpec to run our tests (http://rspec.info) and I've
> created my own HTMLFormatter class which extends their
> Spec::Runner::Formatter::HtmlFormatte and then using
> #extra_failure_content method, which will be invoked if some test
> fails by RSpec itself. So, if test fails, I'm also checking if
> page
> had any JS errors and then make a screenshot of it. Otherwise
> (if test
> passes) JS errors will be ignored.
>
> Jarmo
>
> On Oct 16, 5:30 am, dt_nz  <mailto:david.tay...@sungard.com>> wrote:
> > Hi
> > To capture a java script error, how do you call theses
> methods.  Do
> > you have a separate thread that is always running
> > save_javascript_error in a loop, or is save_javascript_error
> called
> > after each action on a page?
> >
>     > We have an existing framework that runs a lot of tests in our
> > regression runs and am ideally looking for a solution to
> incorporate
> > it into our existing structure.
>
>
>
>
>
>
> >


-- 
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: Elements supported by Watir

2009-10-18 Thread Bret Pettichord

I think I'm running the latest version of Watir: 1.6.5 rc1 or thereabouts.

Bret

Jason wrote:
> Hey Brett,
>
> How is it that you got Watir::Dd, Watir::Dt & Watir::Dl (amongst
> others like Watir::Strong) in your list?  When I run the same code
> these are not returned - wondering if you have custom methods in place
> for those, or what I need to do to make sure they are identifiable
> elements?
>
> - Jason
>
>
> On Sep 29, 5:08 am, Bret Pettichord  wrote:
>   
>> On Sep 28, 4:54 am, Željko Filipin 
>> wrote:
>>
>> 
>>> Do we have a place where all elements (link, image, button...) supported by
>>> Watir are listed?
>>>   
>>> Is this list complete?
>>>   
>>> http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element
>>>   
>> I've been trying to keep it up to date
>>
>> 
>>> Is there a simple way I could take a look in the code and find which
>>> elements Watir supports?
>>> I see we have Element class and I suppose all elements inherit it. I have
>>> searched Watir code for `< Element` and found a lot of places where it
>>> appears. Is there a central location where all elements are collected?
>>>   
>>>> def is_element_subclass?klass
>>>> whileklass=klass.superclass
>>>> return true ifklass== Watir::Element
>>>> end
>>>> end
>>>> ObjectSpace.each_object(Class){|c| puts c if is_element_subclass?(c)}
>>>> 
>> Watir::HTMLElement
>> Watir::Link
>> Watir::Image
>> Watir::TableCell
>> Watir::TableRow
>> Watir::TableBody
>> Watir::TableBodies
>> Watir::Table
>> Watir::CheckBox
>> Watir::Radio
>> Watir::RadioCheckCommon
>> Watir::FileField
>> Watir::Hidden
>> Watir::TextField
>> Watir::Button
>> Watir::SelectList
>> Watir::InputElement
>> Watir::Em
>> Watir::Strong
>> Watir::Dd
>> Watir::Dt
>> Watir::Dl
>> Watir::H6
>> Watir::H5
>> Watir::H4
>> Watir::H3
>> Watir::H2
>> Watir::H1
>> Watir::Ul
>> Watir::Li
>> Watir::Label
>> Watir::Area
>> Watir::Map
>> Watir::Span
>> Watir::Div
>> Watir::P
>> Watir::Pre
>> Watir::NonControlElement
>> Watir::Form
>>
>>
>>
>> 
>>> Željko
>>> --http://watirpodcast.com/
>>>   
> >
>   


-- 
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: Identifying objects when browser window has no toolbar

2009-10-16 Thread Bret Pettichord
ront/dsa/ui/
> DSAPressReleaseConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSASLVConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAddOnProductConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAddOnMinutesConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAddOnMultipleQuantityConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAEcommDesignConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSASEVConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAOrderConfirmationContainer.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAOLMConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSADIFMStandardConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAEVContactPanel.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAttrAddOnMinuteConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAttrAddOnPageConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSADIFMRedesignConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAddOnMaintConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAAttrAddOnKeywordConfig.js
> text/javascript id= src=/sales/javascript/app/com/xxx/storefront/dsa/ui/
> DSAServiceAgreementPanel.js
> text/javascript id= src=
> text name=prod id=product-list value=Select a product alt=
> src=
> button name= id=ext-gen219 value=Add
> name= id=
> name= id=
> name= id=
> name= id=ext-gen176
> checkbox name=manualProcessing id=manual-processing value=on alt=
> src=
> text name=couponField id=coupon-field value= alt=
> src=
> button name= id=ext-gen101 value=Redeem
> name= id=
> name= id=
> name= id=
> name= id=
> name= id=
> name= id=
> name= id=
> name= id=
> name= id=
> name= id=ext-gen124
> button name= id=ext-gen48 value=Back
> button name= id=ext-gen57 value=Next
> => nil
>
> Regards,
>
> Hiroko
>
>
>
> >


-- 
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: had to issue 3 'gem install watir' commands

2009-10-16 Thread Bret Pettichord

Chris,

Thanks for the report. I think one source of trouble is that you are 
using an older version of Rubygems. The newer version will automatically 
install dependencies without asking, and i think it might also handle 
some of your other troubles better as well.

What version of rubygems do you have? ("gem --version") -- I have 1.3.4. 
You can update to the latest by doing "gem update --system" although i 
think this can take some time, and there may be issues updating past 
1.2.0.(details: http://rubyforge.org/forum/forum.php?forum_id=28071)

My guess is that this is happening a lot to people. Is there something 
we might do to make this work better? Add a dependency on a new version 
of rubygems? Appreciate all your thoughts.

Bret

Chris McMahon wrote:
>
> hi Watir people, long time no email.  
>
> I want to use Watir for a little project. I was installing it on a 
> Vista desktop.  Because it took 3 tries to get everything, Bret 
> suggested I mention that here.  Here is the full transcript of the 
> installation, which happened to still be up in my shell: 
>
>
> C:\Users\ChrisMc>irb
> irb(main):001:0> exit
>
> C:\Users\ChrisMc>gem install watir
> Bulk updating Gem source index for: http://gems.rubyforge.org
> Install required dependency win32-process? [Yn]  Y
> Install required dependency windows-pr? [Yn]  Y
> Install required dependency windows-api? [Yn]  Y
> Install required dependency win32-api? [Yn]  Y
> Select which gem to install for your platform (i386-mswin32)
>  1. win32-api 1.4.5 (ruby)
>  2. win32-api 1.4.5 (x86-mswin32-60)
>  3. win32-api 1.4.4 (ruby)
>  4. win32-api 1.4.4 (x86-mswin32-60)
>  5. Skip this gem
>  6. Cancel installation
> > 2
> Install required dependency win32-api? [Yn]  Y
> Select which gem to install for your platform (i386-mswin32)
>  1. win32-api 1.4.5 (ruby)
>  2. win32-api 1.4.5 (x86-mswin32-60)
>  3. Skip this gem
>  4. Cancel installation
> > 1
> Install required dependency test-unit? [Yn]
> Install required dependency hoe? [Yn]  Y
> Install required dependency rubyforge? [Yn]  Y
> Install required dependency json_pure? [Yn]  Y
> Install required dependency rake? [Yn]  Y
> Building native extensions.  This could take a while...
> ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
> ERROR: Failed to build gem native extension.
>
> ruby extconf.rb install watir
> checking for strncpy_s()... no
> creating Makefile
>
> nmake
> 'nmake' is not recognized as an internal or external command,
> operable program or batch file.
>
>
> Gem files will remain installed in 
> c:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.
> 5 for inspection.
> Results logged to 
> c:/ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.5/ext/gem_make.ou
> t
>
> C:\Users\ChrisMc>gem install watir
> Install required dependency win32-process? [Yn]  Y
> Install required dependency windows-pr? [Yn]  Y
> Install required dependency activesupport? [Yn]  Y
> Install required dependency commonwatir? [Yn]  Y
> Install required dependency user-choices? [Yn]  Y
> Install required dependency xml-simple? [Yn]  Y
> Install required dependency s4t-utils? [Yn]  Y
> Install required dependency builder? [Yn]  Y
> Install required dependency firewatir? [Yn]  Y
> Successfully installed watir-1.6.2
> Successfully installed win32-process-0.6.1
> Successfully installed windows-pr-1.0.8
> Successfully installed activesupport-2.3.4
> Successfully installed commonwatir-1.6.2
> Successfully installed user-choices-1.1.6
> Successfully installed xml-simple-1.0.12
> Successfully installed s4t-utils-1.0.4
> Successfully installed builder-2.1.2
> Successfully installed firewatir-1.6.2
> Installing ri documentation for watir-1.6.2...
> Installing ri documentation for win32-process-0.6.1...
> Installing ri documentation for windows-pr-1.0.8...
> Installing ri documentation for activesupport-2.3.4...
> Installing ri documentation for commonwatir-1.6.2...
> Installing ri documentation for user-choices-1.1.6...
> Installing ri documentation for s4t-utils-1.0.4...
> Installing ri documentation for builder-2.1.2...
> While generating documentation for builder-2.1.2
> ... MESSAGE:   Unhandled special: Special: type=17, text=""
> ... RDOC args: --ri --op 
> c:/ruby/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --title
> Builder -- Easy XML Building --main README --line-numbers --quiet lib 
> CHANGES Ra
> kefile README doc/releases/builder-1.2.4.rdoc 
> doc/releases/builder-2.0.0.rdoc do
> c/releases/builder-2.1.1.rdoc
> (continuing with the rest of the installation)
> Installing ri documentation for firewatir-1.6.2...
> Installing RDoc documentation for watir-1.6.2...
> Installing RDoc documentation for win32-process-0.6.1...
> Installing RDoc documentation for windows-pr-1.0.8...
> Installing RDoc documentation for activesupport-2.3.4...
> Installing RDoc documentation for commonwatir-1.6.2...
> Installing RDoc documentation for user-choices-1.1.6...
> Installing RDoc documentation for s4t-utils-1.0.4...
> Installing RDoc documen

[wtr-general] Re: Hudson, was Re: Dwatir - Can this help running watir tests on remote machines?

2009-10-16 Thread Bret Pettichord

Jarmo Pertman wrote:
> I've also had some thoughts about running tests in parallel and I'm
> thinking currently that it should be relatively easy to implement your
> own system with DRb (Distributed Ruby - 
> http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/index.html).
> Maybe I don't see some issues which might come with it, but currently
> it doesn't seem so bad idea at all.
>   
Sounds like a good idea to me. Let us know how it works out.


--~--~-~--~~~---~--~~
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: Open and close Browser repeatedly leads to ie hanging

2009-10-16 Thread Bret Pettichord

Bill,

This is a good analysis of the problem.

The method IE.new_process was specifically designed to avoid these problems.

Personally, however, I wouldn't start and stop a browser for each test. 
This entails a lot of overhead, and really slows things down.

Bret

Bill Agee wrote:
> I faced a similar problem a long while back - intermittently, when 
> starting a new browser immediately after closing another, I would get 
> an OLE exception.
>
> I never found the root cause, but if I remember correctly, I noticed 
> that iexplore.exe continued to run for a short time after I called 
> IE#close.  So I tried doing the following, which solved the problem:
>
> - Start the browser, let its tests run, close the browser
>
> - Begin a loop that waits for iexplore.exe to exit
>
> - Don't start the next browser instance until iexplore.exe is gone
>
> This may not work for you if you need to have more than one browser 
> running.  But for me it was fine since I can only run one window at a 
> time. :)
>
> Thanks
> Bill
>
> On Fri, Oct 16, 2009 at 3:23 AM, pallavi shashidhar 
> mailto:pals.sha...@gmail.com>> wrote:
>
> Hi There,
> We have a couple of watir scripts that are run as regression suite
> on a CI server (cruise control).
> Have installed Ruby 1.8.6.26 and watir 1.6 with IE7.
> System specification ; windows server 2003 edition, 500gb, 4gb RAM
>
> All the scripts are made independent and hence we have a
> start_browser and browser.close at setup and teardown.
> After a while, i find that ie keeps hanging and am not able to
> proceed unless i close the browser manually and yet i see that the
> ie process is not being killed.
> This leads us to lot of RPC server unavailable errors:
>
> When the suite is run again, i get a lot of these errors:
>
> |failed to create WIN32OLE object from `InternetExplorer.Application'
> HRESULT error code:0x80004005
> Unspecified error (WIN32OLERuntimeError)
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `initialize'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `new'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:167:in
> `create_browser_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:91:in
> `_new_window_init'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:81:in
> `new_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:105:in
> `start_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:99:in
> `start'
> 
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/browser.rb:71:in
> `start'|
>
> Have tried one of the 3 solutions that Bret has mentioned i.e,
> Create an additional IE. As long as this lives, the IE server will
> continue to live and you can close and create IE windows without
> worry.
>
> Inspite of having done this, i get the errors. We cannot
> completely avoid opening and closing of browsers as more and more
> scripts are added to the regression suite.
> What could be the reason for ie to hang and how can that be avoided?
>
> Regards,
> Pallavi
>
>
>
>
> >


--~--~-~--~~~---~--~~
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] Hudson, was Re: Dwatir - Can this help running watir tests on remote machines?

2009-10-15 Thread Bret Pettichord



Alan Baird wrote:
> Bret - 
>
> I'm looking into this.  I see all of the plugins for Selenium and I'm 
> expecting to see something like, Plugin for Ruby Test::Unit or Rspec.  
>
> Ultimately, Hudson has to be able to understand my test results.  Is it a 
> plugin that accomplishes that or do my tests need to emit XML?  If it's XML, 
> how do you do that?
>   
We use ci-reporter to emit xml. This works with either Test::Unit or 
Rspec (or Rasta).

Then we use this action in Hudson to pull in the results:
* Publish JUnit test result report

This works fine with the XML that ci-reporter generates.

Bret


--~--~-~--~~~---~--~~
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: watir tests are not passing on my environment

2009-10-14 Thread Bret Pettichord

My guess is that this is Ajax code and that a robust fix would be to add 
some calls to "wait_until".

I also suspect that your new environment is using a faster browser 
and/or version of watir and that this is why you are now seeing timing 
problems.

Bret

P.S. The other solution might be to litter your code with sleeps. Just 
kidding!

Shlomit Gazit wrote:
> One specific example I have:
> I ran a test that is passing on my old environment and on the new
> environment it is intermittent.
>
> When trying to find popup:
>
> The code is:
>
>   $ie.cell(:class, "c2p-action-down-arrow-horizontal").click
>   $ie.link(:id, "ID_EDITWATCHERS_MENU").click
>   $ie1 = Watir::IE.attach(:title, /C2P/)
>   $ie1.wait
>   $ie1.select_list(:id,
> "RIGHT_HAND_LIST").select_item_in_select_list(:index, 0)
>   $ie1.image(:src, /button_triangle_left/).click .
>
>
> I got the error:
>
>  1) Error:
> test_issue_top(TC_c2p_all_issues):
> Watir::Exception::UnknownObjectException: Unable to locate element,
> using :id, "RIGHT_HAND_LIST"
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
> 52:in `assert_exists'
> C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
> input_elements.rb:63:in `select_item_in_select_list'
> C:/Program Files/Genuitec/MyEclipse 7.5/Workspaces/MyEclipse/
> c2p_watir/c2p_test_issues_2_menus_dev.rb:67:in `setup'
>
> 1 tests, 0 assertions, 0 failures, 1 errors
>
>
> On Oct 14, 12:16 am, Željko Filipin 
> wrote:
>   
>> 2009/10/14 Shlomit Gazit 
>>
>> 
>>> I dont know if a downgrade will solve the problem.
>>>   
>> I do not know too. Try and let us know.
>>
>> 
>>> For instance I can click in a frame with the old machine and watir
>>> doesnt find it on the new machine.
>>>   
>> And the error message is?
>>
>> Željko
>> 
> >
>   


-- 
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: Dwatir - Can this help running watir tests on remote machines?

2009-10-14 Thread Bret Pettichord

Alan Baird wrote:
>> What are you already using?
>> 
> Pretty much what you described.  I wrote a rails front end with some *very* 
> simple views and wrapped that around a restful interface that a client ruby 
> script can interact with.  All it does is sends down some arguments to the VM 
> that it uses to call a command line to run all sorts of tests (rasta, rspec, 
> test-unit, etc.).  The reason it's clunky is that the normal unit test tools 
> don't have good interfaces for reporting up the results of tests (unless you 
> are running ci or something like that).  There are tools that have HTML 
> reports (like rspec), but it requires some tweaking of the reports to get it 
> to integrate nicely with a webpage (a skill I don't have yet).
>   
This is where hudson excels. You can also run tests manually through 
hudson (to answer the question you asked in a previous post). There is a 
"run now" button. I believe it is also scriptable.

Strongly urge you to take a look at it.

Bret

-- 
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: Difference b/w Click_no_wait and .Click!

2009-10-14 Thread Bret Pettichord

Shane wrote:
> The case I have encountered for using click!, is when 'click' doesn't
> return for a long time (or sometimes never depending on how buggy a
> web page or ad-servers are), and a 'click!' followed by a 'wait_until'
> to check the event success/fail is sufficient.
>   
That makes sense to me. Thanks.

Bret

--~--~-~--~~~---~--~~
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: Dwatir - Can this help running watir tests on remote machines?

2009-10-14 Thread Bret Pettichord

We use hudson to run our tests on multiple machines. It automatically 
distributes tests to an unused machine.
http://hudson-ci.org/

Guy wrote:
> Hi All,
>
> Is there a way to run watir tests on remote machines (running few test
> suites in parallel on remote machines)?
>
> I searched the web and came with Dwatir as a relevant option(?).
> Unfortunately I couldn't figure how to use it.
> I would appreciate an example of Dwatir or any other way to run watir
> tests on remote machines.
>
> Cheers,
>
> Guy


--~--~-~--~~~---~--~~
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: Capturing Java Script Errors

2009-10-14 Thread Bret Pettichord

Good idea. "browser.status" will report the status message. Could you 
check this out and let us know if it has promise?

Bret

Pallavi Sharma wrote:
> Hi Bret
>
> Is there a way in watir I can fetch the warning message which appears 
> in the status bar of IE during a JS error?
>
> Can that be a solution for this issue?
>
> Please let me know.
>
> Thanks
>
> Pallavi.
>
> On Mon, Oct 12, 2009 at 8:45 AM, Bret Pettichord  <mailto:b...@pettichord.com>> wrote:
>
>
> Marlon MxM wrote:
> > have you tried the solutions listed here
> > http://wiki.openqa.org/display/WTR/Pop+Ups?
> Mostly that consists of variations on using AutoIt.
>
> I'm looking for more creative approaches.
>
> E.g. as regards this dialog:
> http://wiki.openqa.org/display/WTR/Security+Information
>
> I got rid of this simply by changing the security setting of the
> browser
> (manually) to stop displaying this window.
>
> I know that there must be some hook that is available to trap the
> javascript errors. If you have Visual Studio installed, instead of
> getting this dialog, the visual studio debugger is started up. So
> there
> is a hook there.
>
> I was thinking it would be cool to hook in our own code to that hook,
> and was wondering if any one had already done this.
>
> Bret
>
> --
> Bret Pettichord
> Lead Developer, Watir, www.watir.com <http://www.watir.com>
> Blog, www.io.com/~wazmo/blog <http://www.io.com/%7Ewazmo/blog>
> Twitter, www.twitter.com/bpettichord
> <http://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: Wiki cleanup: comments when editing pages

2009-10-13 Thread Bret Pettichord

Željko Filipin wrote:
> On Wed, Oct 14, 2009 at 12:49 AM, Bret Pettichord  <mailto:b...@pettichord.com>> wrote:
> > Do we have a page where we give guidance on editing wiki pages?
>
> Just "How to edit pages" on 
> http://wiki.openqa.org/display/WTR/How+Can+I+Help
Updated
http://wiki.openqa.org/pages/viewpreviouspageversions.action?pageId=12025952

--~--~-~--~~~---~--~~
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: Wiki cleanup: comments when editing pages

2009-10-13 Thread Bret Pettichord

Do we have a page where we give guidance on editing wiki pages?

--~--~-~--~~~---~--~~
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: Difference b/w Click_no_wait and .Click!

2009-10-13 Thread Bret Pettichord

Shane wrote:
> So if no IE modal dialogs pop up, I would recommend you use click!,
> because you don't have the overhead of starting up a new ruby process
> each time.
> And that has worked for me so far.
>   
In this case, i would recommend using plain old "click". I have not seen 
a use case for "click!"
Bret



--~--~-~--~~~---~--~~
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: Does anyone have examples of using rspec with safariwatir

2009-10-13 Thread Bret Pettichord


Željko Filipin wrote:
> On Fri, Oct 9, 2009 at 1:46 PM, aidy lewis  > wrote:
> > I have written a new example here:
> > http://wiki.openqa.org/display/WTR/RSpec
>
> Aidy,
>
> I appreciate your contribution, but you broke Tutorial navigation. "Go 
> to contents, previous, next page." text at the bottom of the page 
> helps users to follow the tutorial. I have fixed it. Please be more 
> careful the next time.
>
> Željko

Maybe we need to write watir regression tests for the wiki?

Bret

--~--~-~--~~~---~--~~
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: Summary wiki page

2009-10-13 Thread Bret Pettichord

Looks great.

Željko Filipin wrote:
> On Tue, Oct 6, 2009 at 5:06 AM, Bret Pettichord  <mailto:bpettich...@gmail.com>> wrote:
> > The collection looks useful, but something is confusing about the
> > parentage of the collection. Look at the breadcrumbs on these pages.
> >
> >  Dashboard  >  Watir >  ...Project Home > Start Here > Tutorial >
> > Summary > Collections of HTML Elements
>
> Fixed:
>
> http://wiki.openqa.org/display/WTR/Summary
>
> Dashboard > Watir > Summary
>
> Željko
>
> >


--~--~-~--~~~---~--~~
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: Unable to create a new IE instance

2009-10-12 Thread Bret Pettichord

60 IE instances is a lot. My first guess would be that IE7 uses more 
memory that IE6 and that therefore you can't create as many instances of 
it. You might consider getting more RAM to fix your problem.

Bret

Prince3105 wrote:
> Hi ALl,
>
> I am using below package.
>
> Watir version - 1.6.2
> Ruby version - 1.8.6
>
>
> I am using below code for log-in in batch running.
>
> require 'watir/ie'
> require 'watir/testcase'
> require 'watir/cookiemanager'
> require 'watir\contrib\enabled_popup'
> require 'watir/winClicker'
> require 'time'
> require 'win32/clipboard'
> include Win32
>
> Watir::CookieManager::WatirHelper.deleteSpecialFolderContents
> (Watir::CookieManager::WatirHelper::COOKIES)
> Watir::CookieManager::WatirHelper.deleteSpecialFolderContents
> (Watir::CookieManager::WatirHelper::INTERNET_CACHE)
>
>
> $url = "http://iic66/icomettest/iCometTest13/Login.aspx";
> $corp_id  = "admin"
> $corp_password  = "admin"
>
>
> def page_login(user_id, password)
> @ie = Watir::IE.new
> @ie.goto $url
> @ie.maximize
> @ie.bring_to_front
>
> @ie.text_field(:id,"txtUserName").set user_id
> @ie.text_field(:id,"txtPassword").set password
> @ie.button(:id,"btnSubmit").click
> end
>
> class Test1def test_a
>  page_login($corp_id, $corp_password)
>
>  # Some validation codes
>   end
> end
>
>
> since its a batch running, this function creates more than 60 IE
> instances in the test and i didn't face any issues.
>
> Last week i updated my IE version from 6 to 7 and ran the script
> again. But that function struggled in many times and didn't created
> some IE instances and threw below error. But the same code worked good
> in IE 6, but it failed in IE 7. It failed 5 times out of 62 new IE
> instances.
>
>  Error:
>test_b(Test92):
> WIN32OLERuntimeError: failed to create WIN32OLE object from
> `InternetExplorer.Application'
> HRESULT error code:0x80004005
>   Unspecified error
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> 167:in `initialize'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> 167:in `new'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> 167:in `create_browser_window'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> 91:in `_new_window_init'
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> 87:in `initialize'
> Stores&Spares_Masters.RB:196:in `new'
> Stores&Spares_Masters.RB:196:in `page_login'
> Stores&Spares_Masters.RB:424:in `test_b'
>
> So friends please take a look on my code, if any error in my code
> please correct it. If any workaround or some other ways are there
> please post it.
>
>
> Thanks,
>
> Prince3105
>
>
> >
>   


-- 
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: Watir 1.6.5.rc1 - release candidate available for testing

2009-10-12 Thread Bret Pettichord


We have a fix for this and it will be included in RC2.

Željko Filipin wrote:
> 3) upgrade Watir from 1.6.2 to 1.6.5.
> - machine with Watir 1.6.2 (from the second example)
> - install watir-1.6.5.rc1.gem
>
> >gem install watir --no-rdoc --no-ri
> Successfully installed commonwatir-1.6.5.rc1
> Successfully installed nokogiri-1.3.3-x86-mswin32
> Successfully installed watir-1.6.5.rc1
> 3 gems installed
>
> - firewatir 1.6.5. was not installed
> - sample IRB session
>
> irb(main):001:0> require "watir"
> => true
> irb(main):002:0> puts Watir::IE::VERSION
> LoadError: no such file to load -- watir/ie
> from (irb):2
> irb(main):003:0> b = Watir::IE.new
> NameError: uninitialized constant Watir::IE
> from (irb):3
> irb(main):004:0> b = Watir::Browser.new
> LoadError: (eval):1:in `klass': no such file to load -- firewatir
> from 
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.5.rc1/lib/watir/browser.rb:89:in
>  
> `klass'
> from 
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.5.rc1/lib/watir/browser.rb:65:in
>  
> `eval'
> from 
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.5.rc1/lib/watir/browser.rb:89:in
>  
> `klass'
> from 
> c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.5.rc1/lib/watir/browser.rb:65:in
>  
> `new'
> from (irb):4
>
> >


--~--~-~--~~~---~--~~
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: Capturing Java Script Errors

2009-10-11 Thread Bret Pettichord

Marlon MxM wrote:
> have you tried the solutions listed here 
> http://wiki.openqa.org/display/WTR/Pop+Ups?
Mostly that consists of variations on using AutoIt.

I'm looking for more creative approaches.

E.g. as regards this dialog:
http://wiki.openqa.org/display/WTR/Security+Information

I got rid of this simply by changing the security setting of the browser 
(manually) to stop displaying this window.

I know that there must be some hook that is available to trap the 
javascript errors. If you have Visual Studio installed, instead of 
getting this dialog, the visual studio debugger is started up. So there 
is a hook there.

I was thinking it would be cool to hook in our own code to that hook, 
and was wondering if any one had already done this.

Bret

-- 
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: Capturing Java Script Errors

2009-10-09 Thread Bret Pettichord

I would also be interested in a solution to this. Especially if it were 
more elegant to Jarmo's solution. I'd really like to be able to pull the 
text of the javascript error so i could post it to a log. Any one?

Bret

Jarmo Pertman wrote:
> Hello.
>
> We used AutoIt for opening the javascript error message window, then
> make a screenshot of the error message itself and close the window,
> not that IE js error messages would be useful on most of the times.
> This is a little dirty hack, but it works for us sort of.
>
> Jarmo
>
> On Oct 9, 6:15 am, dt_nz  wrote:
>   
>> Hi
>> I was hoping someone could point me in the right direction to get some
>> help capturing java script errors.  We have a rather large number of
>> tests that are executed during our regression run, and there can be a
>> significant amount of page reloads etc that sometimes cause java
>> script errors.  In the past we have simply turned java scripts off
>> from popping up so our tests continue without stopping, and relied on
>> manual testing to pick the errors up.
>>
>> Any help would be appreciated
>> 
> >
>   


-- 
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: Does anyone have examples of using rspec with safariwatir

2009-10-09 Thread Bret Pettichord

You can also find it here:
http://lmgtfy.com/?q=dave+hoover+safariwatir+cucumber+video

Željko Filipin wrote:
> On Fri, Oct 9, 2009 at 5:22 AM, yuping zhong  <mailto:littlezhong...@gmail.com>> wrote:
> > Where can we get the video?
>
> http://www.vimeo.com/2871256
>
> Found it with Google:
>
> http://www.google.com/search?q=Dave+Hoover+video+safariwatir+cucumber
>
> Željko
>
> >


-- 
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: Watir 1.6.5.rc1 - release candidate available for testing

2009-10-09 Thread Bret Pettichord

Interesting.

Charley Baker wrote:
> Good point. Also I spoke too soon. Github is no longer going to 
> support gem building - blog from yesterday: 
> http://github.com/blog/515-gem-building-is-defunct
> The new solution is to use gemcutter and jeweler - gemcutter.org 
> <http://gemcutter.org>, http://github.com/technicalpickles/jeweler
>
> Interesting new development. Watir gems are currently up on gemcutter, 
> pulled from Rubyforge from 1.6.2. We'll have to take a look at setting 
> this up.
>
> -Charley
>
>
> On Fri, Oct 9, 2009 at 10:14 AM, Bret Pettichord 
> mailto:bpettich...@gmail.com>> wrote:
>
>
> Another problem is that github only allowed one gem per project. We
> currently have three.
>
> On Oct 9, 10:33 am, Charley Baker  <mailto:charley.ba...@gmail.com>> wrote:
> > I'd thought about doing something like that. Unfortunately it's
> somewhat of
> > a moot point right now since github's gem creation isn't working
> since the
> > switch to rackspace. :) That's probably the way to go next time
> though.
> >
> > Charley Baker
> > blog:http://blog.charleybaker.org/
> > Lead Developer, Watir,http://wtr.rubyforge.org
> > QA Architect, Gap Inc Direct
> >
> > On Fri, Oct 9, 2009 at 8:18 AM, aidy lewis
> mailto:aidy.le...@googlemail.com>>wrote:
> >
> >
> >
> > > Hi Charley
> >
> > > 2009/10/5 Charley Baker  <mailto:charley.ba...@gmail.com>>: wrote:
> >
> > > >http://wiki.openqa.org/display/WTR/Development+Builds
> >
> > > Would it not be an idea to install the gem(s) directly from
> github?
> >
> > > Aidy
>
>
>
> >


-- 
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: Watir 1.6.5.rc1 - release candidate available for testing

2009-10-09 Thread Bret Pettichord

I wonder if this is because the gem server is in the united states.

bret

On Oct 9, 5:10 pm, Željko Filipin 
wrote:
> On Sat, Oct 10, 2009 at 12:07 AM, Charley Baker 
> wrote:
>
> > Wow, it didn't take very long for me, 5mins tops.
>
> My example was after a clean Ruby install. I guess it does not take so long
> if you have never version of rubygems.
>
> Željko
--~--~-~--~~~---~--~~
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: Watir 1.6.5.rc1 - release candidate available for testing - redux

2009-10-09 Thread Bret Pettichord

I am wondering if maybe commonwatir is installed, but not watir? That
would be consistent with these symptoms.

bret

On Oct 9, 3:48 pm, orde  wrote:
> I also experienced the same problem using WinXP SP3 + IE8.x
>
> Followed install instructions and tried to check watir version (i.e.
> ruby -e 'require "watir"; puts Watir::IE::VERSION' on command line):
>
> -e:1: no such file to load -- watir/ie (LoadError)
>
> On Oct 9, 1:21 pm, Nathan Lane  wrote:
>
> > I'm usually not very bad at figuring things out, but after I install the
> > gems you've provided, I can't get my Windows Vista IE8 to load with Watir. I
> > get the error that watir/ie does not exist.
>
> > On Fri, Oct 9, 2009 at 1:43 PM, Charley Baker 
> > wrote:
>
> > > Hi all,
>
> > >    There's been a lack of feedback on this release candidate. I'm hoping
> > > some of you had the chance to test it out. If not, please take some time 
> > > if
> > > you will to run through some of your tests with this build, there have 
> > > been
> > > quite a few fixes and we could use some eyes to check for compatibility
> > > issues particularly with Firewatir/Linux/Mac OS X, varying versions of IE,
> > > Windows 7, and more. We need to do a bit of cleanup on the wiki and site 
> > > to
> > > update to the latest version number, and there are some last minute
> > > potential fixes coming in, however
>
> > > I would like to finalize and release the official 1.6.5 version next week
> > > unless we see some additional issues that need to be addressed.
>
> > > Even information like it worked for me with platform X/browser Y with no
> > > problems would be great. :) Thanks for your help.
>
> > > Link to the rc1 version:
> > >http://wiki.openqa.org/display/WTR/Development+Builds
>
> > > Charley Baker
> > > blog:http://blog.charleybaker.org/
> > > Lead Developer, Watir,http://watir.com
> > > QA Architect, Gap Inc Direct
>
> > --
> > Nathan Lane
> > Blog,http://blog.nathandelane.com
--~--~-~--~~~---~--~~
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: watir:buttons returns only 1st button

2009-10-09 Thread Bret Pettichord

Thanks for the report. This is duplicate of WTR-175, which has been
open for some time. Would someone like to look into fixing it?
http://jira.openqa.org/browse/WTR-175

Bret

On Oct 9, 4:16 am, kat  wrote:
> Unfortunately, I cannot change html.
> Also, this is a real bug. I've submitted it here: 
> tohttp://jira.openqa.org/browse/WTR-326
>
> On Oct 8, 11:25 pm, orde  wrote:
>
> > Weird.  Looks like it's returning the text (i.e. "1st button") instead
> > of the value ("first button").
>
> > I'm not sure why you are getting unexpected results, but here are a
> > couple of things that might help:
>
> > *  tag isn't the same as  tag
> > * your code below should work if all the buttons are  > type="button">, like this:
>
> >         
> >         
> >         
>
> > Hope that helps.
>
> > orde
>
> > On Oct 7, 6:11 am, kat  wrote:
>
> > > Watir:Buttons is supposed to return all buttons on a page.
> > > With the next tested page
>
> > > 
> > >     some title
> > >     
> > >         
> > >         1st button
> > >         some text
> > >         2nd button
> > >         
> > >     
> > > 
>
> > > using this script:
>
> > > require 'watir'
> > >  test_site = 'http://localhost/test.html'
> > >  ie = Watir::IE.new
> > >  ie.goto(test_site)
> > >  ie.buttons.each do |a_button|
> > >    puts a_button.value
> > >  end
>
> > > I get only "1st button" in output.
> > > Do I do something wrong or this is a bug?
--~--~-~--~~~---~--~~
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: watir:buttons returns only 1st button

2009-10-09 Thread Bret Pettichord

The watir button/buttons methods support both kinds of HTML buttons.
Or at least they have and they should.

On Oct 9, 8:38 am, SuperKevy  wrote:
> From the w3c schools
>
> Definition and Usage
> The  tag defines a push button.
>
> Inside a button element you can put content, like text or images. This
> is the difference between this element and buttons created with the
> input element.
>
> Always specify the type attribute for the button. The default type for
> Internet Explorer is "button", while in other browsers (and in the W3C
> specification) it is "submit
>
> Browser Support
>
> The  tag is supported in all major browsers.
>
> Important: If you use the button element in an HTML form, different
> browsers will submit different values. Internet Explorer will submit
> the text between the  and  tags, while other browsers
> will submit the content of the value attribute. Use the input element
> to create buttons in an HTML form.
>
> Good html code that compiles to a common standard makes a
> difference...
>
> On Oct 9, 4:16 am, kat  wrote:
>
> > Unfortunately, I cannot change html.
> > Also, this is a real bug. I've submitted it here: 
> > tohttp://jira.openqa.org/browse/WTR-326
>
> > On Oct 8, 11:25 pm, orde  wrote:
>
> > > Weird.  Looks like it's returning the text (i.e. "1st button") instead
> > > of the value ("first button").
>
> > > I'm not sure why you are getting unexpected results, but here are a
> > > couple of things that might help:
>
> > > *  tag isn't the same as  tag
> > > * your code below should work if all the buttons are  > > type="button">, like this:
>
> > >         
> > >         
> > >         
>
> > > Hope that helps.
>
> > > orde
>
> > > On Oct 7, 6:11 am, kat  wrote:
>
> > > > Watir:Buttons is supposed to return all buttons on a page.
> > > > With the next tested page
>
> > > > 
> > > >     some title
> > > >     
> > > >         
> > > >         1st button
> > > >         some text
> > > >         2nd button
> > > >         
> > > >     
> > > > 
>
> > > > using this script:
>
> > > > require 'watir'
> > > >  test_site = 'http://localhost/test.html'
> > > >  ie = Watir::IE.new
> > > >  ie.goto(test_site)
> > > >  ie.buttons.each do |a_button|
> > > >    puts a_button.value
> > > >  end
>
> > > > I get only "1st button" in output.
> > > > Do I do something wrong or this is a bug?- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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: Wiki cleanup (was Watir 1.6.5.rc1 - release candidate available for testing)

2009-10-09 Thread Bret Pettichord

+1

On Oct 9, 6:52 am, Željko Filipin 
wrote:
> On Mon, Oct 5, 2009 at 9:37 PM, Charley Baker 
> wrote:
>
> >http://wiki.openqa.org/display/WTR/Development+Builds
>
> As Bret suggested in another thread to clean up the wiki, I suggest that
> this page should be cleaned up. I would delete everything under `Watir 1.6
> has been released.` (including that title). Also, I would delete it's child
> pages:
>
> http://wiki.openqa.org/display/WTR/Notes-1.5.1.1127http://wiki.openqa.org/display/WTR/Notes-1.5.1.1100
>
> Anybody thinks that would not be a good idea?
>
> Željko
> --http://watirpodcast.com/
--~--~-~--~~~---~--~~
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: Watir 1.6.5.rc1 - release candidate available for testing

2009-10-09 Thread Bret Pettichord

Another problem is that github only allowed one gem per project. We
currently have three.

On Oct 9, 10:33 am, Charley Baker  wrote:
> I'd thought about doing something like that. Unfortunately it's somewhat of
> a moot point right now since github's gem creation isn't working since the
> switch to rackspace. :) That's probably the way to go next time though.
>
> Charley Baker
> blog:http://blog.charleybaker.org/
> Lead Developer, Watir,http://wtr.rubyforge.org
> QA Architect, Gap Inc Direct
>
> On Fri, Oct 9, 2009 at 8:18 AM, aidy lewis wrote:
>
>
>
> > Hi Charley
>
> > 2009/10/5 Charley Baker : wrote:
>
> > >http://wiki.openqa.org/display/WTR/Development+Builds
>
> > Would it not be an idea to install the gem(s) directly from github?
>
> > Aidy
--~--~-~--~~~---~--~~
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: Html Elements Supported by Watir

2009-10-07 Thread Bret Pettichord

On Oct 7, 5:57 pm, Željko Filipin 
wrote:
> On Tue, Oct 6, 2009 at 4:41 AM, Bret Pettichord 
> wrote:
>
> > I suggest that the two pages be folded together.
>
> Will do.

I think my replies were out of order with your emails. At this point I
think that all the important information on the one page is already
duplicated on the other. Namely the page with the Class, element,
method list. If we don't need to document the class names, then you
can just drop the second page.

> > I'm also wondering if we need to do more work to organize and update
> > the pages that we already have.
>
> I update what I see is out of date.

Again, my original comment was made before I realized how much work
you've been doing recently to reorganize these pages. I had not been
reading this list for some time, and responded in the order that I
read through it.

> > Also I'm not sure about all the
> > comments that people add to the pages. Is anybody watching them?
>
> When I update the page, I take a look at the comments. Sometimes comment is
> about something that should be fixed. But usually the comments just sit
> there. Sometimes I do not even understand them, or they seem not related to
> the page.

I think we should treat comments just like the other information on
the page. If they seem irrelevant or confusing, they should be
deleted. If they make suggestions which have been addressed, they
should be deleted. I do this sometimes myself.

BTW, I have a comment for others. I really think that Zeljko should be
thanked for all the work he does to keep the wiki up to date. Could
you please join me in thanking him?

Bret

--~--~-~--~~~---~--~~
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: Elements supported by Watir

2009-10-07 Thread Bret Pettichord



On Oct 7, 6:03 pm, Željko Filipin 
wrote:
> On Tue, Oct 6, 2009 at 5:03 AM, Bret Pettichord 
>
> > I am curious as to why you find this information helpful.
>
> I just wanted to get a definite list of HTML elements supported by Watir.

But how do the class names help with this? To me the method names and
the elements supported are user-level information. But the class names
really have to do with how Watir is structured, which is sometimes
ugly inside, but shouldn't matter to most users.

I am worried that this information is being presented in a way that
might lead users to think this is something they should know, and
therefore make Watir look more confusing than it needs to.
--~--~-~--~~~---~--~~
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: Does anyone have examples of using rspec with safariwatir

2009-10-07 Thread Bret Pettichord

Dave Hoover made a video of using safariwatir with cucumber.

On Oct 7, 3:36 pm, QAguy  wrote:
> Or can point out a wiki that would have information on it. My searches
> via google have not bared much fruit.
>
> Thanks in advance.
--~--~-~--~~~---~--~~
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: Sai

2009-10-07 Thread Bret Pettichord

Right now the core developers for the (IE)Watir/FireWatir team are
- Charley Baker
- Angrez Singh
- Jari Bakken
- Bret Pettichord

I'm not sure who the members of the other teams are.

Bret

On Oct 7, 6:00 pm, Željko Filipin 
wrote:
> On Tue, Oct 6, 2009 at 4:58 AM, Bret Pettichord 
> wrote:
>
> > I suggest that define several teams, including "FireWatir/IEWatir
> > team".
>
> +1
>
> Would you do it? Do you need help?
>
> Željko
--~--~-~--~~~---~--~~
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: how to get value of a span style?

2009-10-07 Thread Bret Pettichord

You need to try some additional methods on that style object that you
are getting. Not sure which ones, you'll have to experiment.

Bret

On Oct 7, 8:20 am, Željko Filipin 
wrote:
> On Wed, Oct 7, 2009 at 2:51 PM, kat  wrote:
> > how is it possible to get the span style "somestyle" in Watir?
>
> Looks like `style` is reserved for something else:
>
> b.span(:text, "sometext").attribute_value("style")
> => #
>
> b.span(:text, "sometext").style
> => #
>
> Even html does not return it:
>
> b.span(:text, "sometext").html
> => "sometext"
>
> Željko
> --http://watirpodcast.com/
--~--~-~--~~~---~--~~
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: Can't seem to install watir on the MAC

2009-10-06 Thread Bret Pettichord

The mac install is confusing. Right now, "watir" only works on
windows. But "watir" is installed when you install firewatir on mac.
It all really depends on what you mean by "watir".

We will fix this on a future release. But right now, you have what you
need, and the "watir" example code will work for you.
Watir::Browser.new, etc etc will do the right thing.

Bret

On Oct 6, 3:11 pm, QAguy  wrote:
> Thanks for writing. I have those 2 installed already on my MAC:
>
> safariwatir (0.3.3)
> firewatir (1.6.2)
>
> but a straight
> sudo gem install watir fails. Is that gem not able to be installed on
> the MAC?
>
> Thanks
>
> On Oct 6, 3:40 pm, Bret Pettichord  wrote:> sudo gem 
> install firewatir
> > sudo gem install safariwatir
>
> > On Oct 6, 1:28 pm, QAguy  wrote:
>
> > > When I try to install the watir gem on the mac I am getting the
> > > following:
>
> > > host73:watir_site_regression employee$ sudo gem install watir --
> > > include-dependencies
> > > INFO:  `gem install -y` is now default and will be removed
> > > INFO:  use --ignore-dependencies to install only the gems you list
> > > Building native extensions.  This could take a while...
> > > ERROR:  Error installing watir:
> > >         ERROR: Failed to build gem native extension.
>
> > > /opt/local/bin/ruby extconf.rb
> > > checking for strncpy_s()... no
> > > creating Makefile
>
> > > make
> > > /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -
> > > I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
> > > include -fno-common -O2 -arch x86_64  -fno-common -pipe -fno-common  -
> > > arch x86_64 -c win32/api.c
> > > win32/api.c:2:21: error: windows.h: No such file or directory
> > > win32/api.c:33: error: expected specifier-qualifier-list before
> > > ‘HANDLE’
> > > win32/api.c: In function ‘api_free’:
> > > win32/api.c:40: error: ‘Win32API’ has no member named ‘library’
> > > win32/api.c:41: error: ‘Win32API’ has no member named ‘library’
> > > win32/api.c: At top level:
> > > win32/api.c:58: error: expected ‘)’ before ‘dwError’
> > > win32/api.c: In function ‘callback_init’:
> > > win32/api.c:186: error: ‘LPARAM’ undeclared (first use in this
> > > function)
> > > win32/api.c:186: error: (Each undeclared identifier is reported only
> > > once
> > > win32/api.c:186: error: for each function it appears in.)
> > > win32/api.c:186: error: expected ‘)’ before ‘find_callback’
> > > win32/api.c: In function ‘api_init’:
> > > win32/api.c:233: error: ‘HMODULE’ undeclared (first use in this
> > > function)
> > > win32/api.c:233: error: expected ‘;’ before ‘hLibrary’
> > > win32/api.c:234: error: ‘FARPROC’ undeclared (first use in this
> > > function)
> > > win32/api.c:234: error: expected ‘;’ before ‘fProc’
> > > win32/api.c:270: error: ‘hLibrary’ undeclared (first use in this
> > > function)
> > > win32/api.c:280: error: ‘Win32API’ has no member named ‘library’
> > > win32/api.c:287: error: ‘fProc’ undeclared (first use in this
> > > function)
> > > win32/api.c:330: error: ‘Win32API’ has no member named ‘function’
> > > win32/api.c:338: error: ‘Win32API’ has no member named ‘prototype’
> > > win32/api.c:341: error: ‘Win32API’ has no member named ‘prototype’
> > > win32/api.c:344: error: ‘Win32API’ has no member named ‘prototype’
> > > win32/api.c:347: error: ‘Win32API’ has no member named ‘prototype’
> > > win32/api.c:350: error: ‘Win32API’ has no member named ‘prototype’
> > > win32/api.c:353: error: ‘Win32API’ has no member named ‘prototype’
> > > win32/api.c:367: error: ‘Win32API’ has no member named ‘return_type’
> > > win32/api.c:373: error: ‘Win32API’ has no member named ‘return_type’
> > > win32/api.c:376: error: ‘Win32API’ has no member named ‘return_type’
> > > win32/api.c:379: error: ‘Win32API’ has no member named ‘return_type’
> > > win32/api.c:382: error: ‘Win32API’ has no member named ‘return_type’
> > > win32/api.c:385: error: ‘Win32API’ has no member named ‘return_type’
> > > win32/api.c: In function ‘func_init’:
> > > win32/api.c:456: error: ‘Win32API’ has no member named ‘function’
> > > win32/api.c:456: error: ‘FARPROC’ undeclared (first use in this
> > > function)
> > > win32/api.c:464: error: ‘Win32API’ has no member named ‘prototype’
> > > win32/api.c:467: error: ‘Win32API’ has no member named ‘prototype’
> > > win3

[wtr-general] Re: Watir require "xxx" error?

2009-10-06 Thread Bret Pettichord

require 'watir/ie'

On Oct 6, 4:25 pm, Andrew  wrote:
> Getting an error while starting up the program on this code where I am
> extending SelectList (file name is watir_or.rb)
>
> require 'rubygems'
> require 'watir'
> require 'win32ole'
>
> module Watir
>
>   class Picker < SelectList
>
>     # picker specific methods
>
>   end
> end
>
> The error is
>
> ./watir_or.rb:8: uninitialized constant Watir::SelectList (NameError)
>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 27:in `gem_original_require'
>         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 27:in `require'
>         from pcfparser.rb:1
>
> So what would I have to 'require' to make this work?
>
> Andy
--~--~-~--~~~---~--~~
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: Can't seem to install watir on the MAC

2009-10-06 Thread Bret Pettichord

sudo gem install firewatir
sudo gem install safariwatir

On Oct 6, 1:28 pm, QAguy  wrote:
> When I try to install the watir gem on the mac I am getting the
> following:
>
> host73:watir_site_regression employee$ sudo gem install watir --
> include-dependencies
> INFO:  `gem install -y` is now default and will be removed
> INFO:  use --ignore-dependencies to install only the gems you list
> Building native extensions.  This could take a while...
> ERROR:  Error installing watir:
>         ERROR: Failed to build gem native extension.
>
> /opt/local/bin/ruby extconf.rb
> checking for strncpy_s()... no
> creating Makefile
>
> make
> /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -
> I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/
> include -fno-common -O2 -arch x86_64  -fno-common -pipe -fno-common  -
> arch x86_64 -c win32/api.c
> win32/api.c:2:21: error: windows.h: No such file or directory
> win32/api.c:33: error: expected specifier-qualifier-list before
> ‘HANDLE’
> win32/api.c: In function ‘api_free’:
> win32/api.c:40: error: ‘Win32API’ has no member named ‘library’
> win32/api.c:41: error: ‘Win32API’ has no member named ‘library’
> win32/api.c: At top level:
> win32/api.c:58: error: expected ‘)’ before ‘dwError’
> win32/api.c: In function ‘callback_init’:
> win32/api.c:186: error: ‘LPARAM’ undeclared (first use in this
> function)
> win32/api.c:186: error: (Each undeclared identifier is reported only
> once
> win32/api.c:186: error: for each function it appears in.)
> win32/api.c:186: error: expected ‘)’ before ‘find_callback’
> win32/api.c: In function ‘api_init’:
> win32/api.c:233: error: ‘HMODULE’ undeclared (first use in this
> function)
> win32/api.c:233: error: expected ‘;’ before ‘hLibrary’
> win32/api.c:234: error: ‘FARPROC’ undeclared (first use in this
> function)
> win32/api.c:234: error: expected ‘;’ before ‘fProc’
> win32/api.c:270: error: ‘hLibrary’ undeclared (first use in this
> function)
> win32/api.c:280: error: ‘Win32API’ has no member named ‘library’
> win32/api.c:287: error: ‘fProc’ undeclared (first use in this
> function)
> win32/api.c:330: error: ‘Win32API’ has no member named ‘function’
> win32/api.c:338: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:341: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:344: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:347: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:350: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:353: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:367: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:373: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:376: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:379: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:382: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:385: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c: In function ‘func_init’:
> win32/api.c:456: error: ‘Win32API’ has no member named ‘function’
> win32/api.c:456: error: ‘FARPROC’ undeclared (first use in this
> function)
> win32/api.c:464: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:467: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:470: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:473: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:476: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:479: error: ‘Win32API’ has no member named ‘prototype’
> win32/api.c:493: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:499: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:502: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:505: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:508: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c:511: error: ‘Win32API’ has no member named ‘return_type’
> win32/api.c: At top level:
> win32/api.c:528: error: expected specifier-qualifier-list before
> ‘DWORD’
> win32/api.c:532: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘CallbackFunction’
> win32/api.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘CALLBACK’
> win32/api.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘CALLBACK’
> win32/api.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘CALLBACK’
> win32/api.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘CALLBACK’
> win32/api.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘CALLBACK’
> win32/api.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘CALLBACK’
> win32/api.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘CALLBACK’
> win32/api.c:690: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘_

[wtr-general] Re: Require statements in Watir

2009-10-05 Thread Bret Pettichord

No. don't use caps with require. Use
  require 'watir'
or, sometimes (but usually not needed):
  require 'watir/ie'

On Sep 10, 7:09 pm, Darryl  Brown  wrote:
> Hello Vijay,
>
> Sounds like you're just starting out. If you are using Watir
> with IE then require 'Watir/IE' will be sufficient for basic
> scripting.
>
> Also take a look at:http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes
>
> Darryl
>
> On Sep 10, 6:00 am, dvkbabu  wrote:
>
> > Hi,
>
> > Any any one please provide more information on the following require
> > statements. When should we use the following and what type of include
> > files/libraries we need to include at the beginning of Watir script
> > when etc...
>
> > require 'test/unit'
> > require 'watir'
> > require 'win32ole'
> > require 'rubygems'
> > require 'roo'
>
> > Thanks,
> > Vijay
--~--~-~--~~~---~--~~
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: Issue with a Calendar in a Div /Table Object

2009-10-05 Thread Bret Pettichord

Yes, this is what i use.

http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en

On Sep 30, 4:33 am, Pallavi Sharma  wrote:
> The App doesn't work on FireFox :( anything similar for IE??
>
> On Wed, Sep 30, 2009 at 2:14 PM, Željko Filipin <
>
> zeljko.fili...@wa-research.ch> wrote:
> > On Wed, Sep 30, 2009 at 8:32 AM, Pallavi Sharma 
> > wrote:
> > > I believe there is some event which is getting fired
>
> > To find out which event is fired, install this Firefox add-ons:
>
> > DOM Inspector (Event Spy need is) -
> >https://addons.mozilla.org/en-US/firefox/addon/6622
> > Event Spy -https://addons.mozilla.org/en-US/firefox/addon/1100
>
> > Let me know if you need help with using Event Spy.
>
> > Željko
> > --
> >http://watirpodcast.com/
--~--~-~--~~~---~--~~
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: Watir cannot connect to IE running under non-Admin account on ‘default’ desktop.

2009-10-05 Thread Bret Pettichord

Is this something you could share?

Bret

On Sep 28, 7:07 pm, Shane  wrote:
> Ah, well, it wasn't quite a problem of user rights in the end.
>
> It turns out that the method that Watir uses to enumerate IE windows
> (i.e. Shell.Application) does not work across user spaces.  So I had
> to write an intermediate application to retrieve the IWebBrowser2 COM
> pointer for the IE window, and modify the 'eval_in_spawned_process'
> Watir function to use this handle for 'pc = Watir::IE.bind
> (iWebBrowserPtr)'.
>
> This now works fine. :)
>
> On Sep 28, 12:34 pm, Bret Pettichord  wrote:
>
> > Shane,
>
> > Thanks for the excellent description of the problems that occur when
> > your tests run in an account that doesn't have the rights Watir needs.
>
> > Bret
>
> > On Sep 25, 11:54 am, Shane  wrote:
>
> > > Some Background on architecture of the app is needed:
>
> > > Windows 2003/Apache-v2.2/IE7/Watir-v1.6.2/Ruby-v1.8.5
>
> > >    1. Apache running under 'localsystem' account.
> > >    2. Request to run a Watir script comes in.
> > >    3. Apache CGI kicks off IE7 under a particular user, e.g. 'tester',
> > > and attaches the IE7 window to the "default" desktop environment. This
> > > allows us to VNC into the machine and see all IE7 windows from all the
> > > accounts running.
> > >    4. IE7 has ruby embedded into the process through plugin and
> > > executes the ruby script in a thread.
>
> > > For clicking on links/buttons in IE, Watir supplies a synchronous
> > > 'click' method and async 'click_no_wait' method. 'click_no_wait'
> > > spawns a completely new ruby process to connect back to the IE7 window
> > > to click the link/button.
>
> > > This is what is failing for me. Since click_no_wait is spawning a new
> > > process. It cannot seem to see the IE7 window to connect to it and
> > > click on the link/button. I have to use 'click_no_wait' due to a
> > > dialog box that IE pops up on a certain page, so that another ruby
> > > thread can close it.
>
> > > I've tried a few things:
> > > - using fire_event('OnClick') instead of click_no_wait hangs script
> > > like 'click' would.
> > > - Modifying 'click' by commenting out '@container.wait', but the
> > > 'click!' itself is the API that hangs waiting for the dialog box to
> > > close.
> > > - Make 'click_no_wait' spawn a new thread instead of a process', but
> > > other threads appear to be suspended while the 'click!' call executes
> > > in that thread. Which is strange.
> > > - Executing the 'click_no_wait' process using the exact same code that
> > > is used to spawn the IE7 process, but it still can't find any IE7
> > > windows.
>
> > > By 'default' desktop described above, the code that spawns IE
> > > basically does a series of C++ calls to attach the IE7 window to the
> > > 'winsta0' desktop:
>
> > > - LogonUser() // log in as tester account
> > > - OpenWindowStation("winsta0") // to get default desktop
> > > - SetProcessWindowStation()
> > > - // add the user to interactive window station using
> > > (GetUserObjectSecurity, GetSecurityDescriptorDacl, GetAclInformation,
> > > AddAce, SetSecurityDescriptorDacl, SetUserObjectSecurity)
> > > - // add user to "default" desktop using APIs listed above.
> > > - CreateEnvironmentBlock
> > > - ImpersonateLoggedOnUser
> > > - CreateProcessAsUser('iexplore.exe')
> > > - // cleanup
>
> > > Running the following Watir script under the particular user IE7 is
> > > running under yields:
>
> > > $IE = Watir::IE.attach(:title, /Google/)
> > > $IE.button(:name, 'btnG').click!
>
> > >     c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:
> > > 246:in `method_missing': Windows (WIN32OLERuntimeError) OLE error code:
> > > 80040154 in HRESULT error code:0x80020009 Exception occurred. from c:/
> > > ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:246:in
> > > "each"
>
> > > Which contains:
>
> > > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:246
> > > shell = WIN32OLE.new("Shell.Application")
> > > windows = shell.Windows   ## Fails here
>
> > > Let me know if I can supply more details or disambiguation! :)
>
> > > Thanks, Shane.
--~--~-~--~~~---~--~~
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: Summary wiki page

2009-10-05 Thread Bret Pettichord

The collection looks useful, but something is confusing about the
parentage of the collection. Look at the breadcrumbs on these pages.

  Dashboard  >  Watir >  ...Project Home > Start Here > Tutorial >
Summary > Collections of HTML Elements

Bret

Željko Filipin  wrote:
> On Thu, Oct 1, 2009 at 2:32 AM, Alister Scott 
> wrote:
>
> > The Summary section onhttp://wiki.openqa.org/display/WTR/Project+Home
> > looks like a good idea.
>
> Thanks. For a long time I wished that it existed, and then i decided to make
> my wish come true. :)
>
> Željko
--~--~-~--~~~---~--~~
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: Elements supported by Watir

2009-10-05 Thread Bret Pettichord

Because Frame is not a subclass of Element.

I am curious as to why you find this information helpful. If you want
to know the class of an element, you can always do

> browser.text_field(:id, 'foo').class

Bret

On Sep 30, 7:06 am, Željko Filipin 
wrote:
> Frame is missing from this list. I guess it makes sense, but it is still
> missing.
>
> Željko
>
> On Mon, Sep 28, 2009 at 6:08 PM, Bret Pettichord 
> wrote:
>
> > >> ObjectSpace.each_object(Class){|c| puts c if is_element_subclass?(c)}
> > Watir::HTMLElement
> > Watir::Link
> > Watir::Image
> > Watir::TableCell
> > Watir::TableRow
> > Watir::TableBody
> > Watir::TableBodies
> > Watir::Table
> > Watir::CheckBox
> > Watir::Radio
> > Watir::RadioCheckCommon
> > Watir::FileField
> > Watir::Hidden
> > Watir::TextField
> > Watir::Button
> > Watir::SelectList
> > Watir::InputElement
> > Watir::Em
> > Watir::Strong
> > Watir::Dd
> > Watir::Dt
> > Watir::Dl
> > Watir::H6
> > Watir::H5
> > Watir::H4
> > Watir::H3
> > Watir::H2
> > Watir::H1
> > Watir::Ul
> > Watir::Li
> > Watir::Label
> > Watir::Area
> > Watir::Map
> > Watir::Span
> > Watir::Div
> > Watir::P
> > Watir::Pre
> > Watir::NonControlElement
> > Watir::Form
--~--~-~--~~~---~--~~
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: Elements supported by Watir

2009-10-05 Thread Bret Pettichord

require 'watir/ie'

On Sep 29, 4:26 am, Željko Filipin 
wrote:
> On Mon, Sep 28, 2009 at 6:08 PM, Bret Pettichord 
> wrote:
>
> > >> def is_element_subclass? klass
> > >> while klass = klass.superclass
> > >> return true if klass == Watir::Element
> > >> end
> > >> end
>
> > >> ObjectSpace.each_object(Class){|c| puts c if is_element_subclass?(c)}
>
> I executed this code on Mac and Windows and got this error message:
>
> NameError: uninitialized constant Watir::Element
>         from (irb):5:in `is_element_subclass?'
>         from (irb):9
>         from (irb):9:in `each_object'
>         from (irb):9
>
> I tried with or without `require "watir"` as the first line.
>
> What am I doing wrong?
>
> Mac:
> ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0])
> commonwatir (1.6.2)
> firewatir (1.6.2)
> safariwatir (0.3.3)
>
> Windows:
> ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
> commonwatir (1.6.2)
> firewatir (1.6.2)
> watir (1.6.2)
>
> Željko
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   3   4   5   6   >