[wtr-general] Re: ERROR installing watir

2008-10-07 Thread Bret Pettichord

I've found that the gem installer works much better if you do a gem 
update --system. Unfortunately this can be hard to do also (for the 
same reasons).

On one occassion, I did this update on a machine that did not have 
connection problems, then I copied the entire ruby directory to my other 
machines. After that, the gem installer worked great.

Bret

Tim Koopmans wrote:
 This happens to me a lot. Try installing from gem files downloaded
 manually. There's some instructions on how to do this here:
 http://justaddwatir.com/watir/q-how-do-i-gem-install-watir-behind-a-proxy-server/

 Check out the comments section for recent example.

 Regards,
 Tim Koopmans
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: check the pagetext

2008-10-13 Thread Bret Pettichord

Have you looked at browser.text? Personally, I always use this (or the 
text method on something more specific). I find the pagecontainstext 
method confusing.

Bret

bugs apple wrote:
 Hi, all
  
 As we known, pagecontainstext method could check the text that 
 contained current page, including the values in the object
  
 maybe the pagecontainstext method was designed like below,
   if (ie.getDocument.body.innertext =~ /#{text}/) != nil
  puts true
   else
  puts false
   end
  
 but, that is not my expect, I only want to check the pure text, as the 
 label displayed on page, which is not belong to any object value or 
 dropdown/select list item.
 who can provide some good way to check the 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Building a gem from trunk / watir-common

2008-10-16 Thread Bret Pettichord

You'll need to gem install hoe before building watir-common. And then 
you'll need to install it, before installing Watir.

Bret

Jeff Fry wrote:
 Corrected below

 On Wed, Oct 15, 2008 at 10:39 PM, Jeff Fry [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 OK, I'm getting closer - I've checked out from 1 level up and so
 now have watir-common. I just


 I created a gem  #this is what I meant to paste here:
 C:\dev\watirgem build watir.gemspec
   Successfully built RubyGem
   Name: watir
   Version: 1.5.6
   File: watir-1.5.6.gem


 ...and then tried the following:

 C:\dev\watir-commonrake gem
 (in C:/dev/watir-common)
 rake aborted!
 no such file to load -- hoe
 C:/dev/watir-common/rakefile:2
 (See full trace by running task with --trace)

 I tried the same thing in /watir, which succeeded...


 C:\dev\watirrake gem
 (in C:/dev/watir)
 mkdir -p pkg
   Successfully built RubyGem
   Name: watir
   Version: 1.5.6
   File: watir-1.5.6.gem
 mv watir-1.5.6.gem pkg/watir-1.5.6.gem

 ...but still doesn't get watir to build for me:


 C:\dev\watir\pkggem install watir-1.5.6.gem --local
 ERROR:  Error installing watir-1.5.6.gem:
 watir requires watir-common (= 0)

 Bret or others, can you help me find the error of my ways?

 I'll be happy to get this onto the wiki in greater detail.

 Thanks,
 Jeff



 On Tue, Oct 14, 2008 at 12:08 AM, Jeff Fry [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 From IRC:

 [23:02]   jfry  Hey there, have any of you built a gem
 locally from the watir trunk?
 [23:02]   jfry  I've done it successfully a long time back, I
 think.
 [23:02]   jfry  Just tried now and got:
 [23:02]   jfry  ERROR: Error installing watir-1.5.6.gem:
 [23:02]   jfry  watir requires watir-common (= 0)
 [23:02]   jfry  Does that mean anything to you?
 [23:07]   pettichordhi there
 [23:08]   pettichordyou'll also need to build the
 watir-common gem
 [23:08]   pettichordrake gem in the watir-common directory


 I've searched for a directory called common or watir-common
 and came up blank. I also tried:
 C:\dev\watirrake gem
 ...Which created a pkg directory, containing
 10/13/2008  11:12 PM   254,464 watir-1.5.6.gem

 ...but clearly I'm missing something because both of the
 following still fail for me:

 C:\dev\watir\pkggem install watir-1.5.6.gem
 Bulk updating Gem source index for: http://gems.rubyforge.org/
 ERROR:  Error installing watir-1.5.6.gem:
 watir requires watir-common (= 0)

 C:\dev\watir\pkggem install watir-1.5.6.gem --local
 ERROR:  Error installing watir-1.5.6.gem:
 watir requires watir-common (= 0)

 What am I missing?

 Thanks,

 -- 
 Jeff Fry

 http://testingjeff.wordpress.com
 http://associationforsoftwaretesting.org




 -- 
 Jeff Fry

 http://testingjeff.wordpress.com
 http://associationforsoftwaretesting.org




 -- 
 Jeff Fry

 http://testingjeff.wordpress.com
 http://associationforsoftwaretesting.org

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Any good conferences this year about watir/ruby/rspec?

2008-10-16 Thread Bret Pettichord

I expect to announce an AWTA workshop to be held Jan 16-18 shortly. It 
will be in Austin and will focus on Watir.

http://awta.wikispaces.com/

juuser wrote:
 Hello.

 Sorry for this little offtopic question, but I was wondering if anyone
 happens to know if there's any good conferences coming up about watir
 or ruby or rspec in this year where I could attend to?

 Or any good website where such things are listed or something similar.

 All suggested conferences should not take place before one month from
 now (employer needs some time to get good plane tickets and so on).
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Date Add or Subtract

2008-10-20 Thread Bret Pettichord

Here is some more cool stuff with dates.

C:\watir-console
  10.days.ago
= Fri Oct 10 21:50:46 +0100 2008
  1.month.from_now
= Thu Nov 20 21:51:00 + 2008
  2.weeks.since Time.local(2008,1,1)
= Tue Jan 15 00:00:00 + 2008
  Time.now - 1.day
= Sun Oct 19 21:52:10 +0100 2008
  Time.now + 6.years
= Mon Oct 20 21:52:22 +0100 2014

How do i know about this? I looked in the Ruby Cookbook, one of the top 
2 Ruby books recommended for Watir Testers.
http://www.io.com/~wazmo/blog/archives/2008_10.html#000287


Moochie wrote:
 Incase anyone needs to add or subtract  days, months, years or all of
 the above from a known date the following works for me.

 require 'date'
 #Date Add Function
 def date_add(mth,day,yr)
   #Set Date Variable
   @new_date = Date.today
   #Month calculations
   if mth != 0
 @new_date = @new_date  mth
   end
   #Day calculation
   if day != 0
 @new_date = @new_date.+(day)
   end
   #Year calculation
   if yr != 0
 @new_date = @new_date  yr * 12
   end
   #Returns new date
   return @new_date
 end
 @new_date = date_add(2,3,4)
 puts @new_date.strftime(%m/%d/%Y)
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to Speed Up the wat ir ?

2008-10-21 Thread Bret Pettichord

Have you tried :zippy speed? Is this documented somewhere?

You should know that there are some significant performance improvements 
in trunk and will be included in 1.6.

Bret


bugs apple wrote:
 Push it forward for you again. And expect your replies.

 2008/10/20 bugs apple [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

 Hi, all
  
 After research into the Watir::IE class, I can get this clue that
 set up @@speed and achieve her turning.
 But, I want to get others more turning information, such as  what
 about @@attach_timeout  or download time? what is more, I can't
 let this variable as 0 so that get the rapid speed?  I want to
 consult with the experts the her advantage and disadvantage, and
 how get the performance maxsize ?
  
 Another question is that, how to generate the file_fields object,
 like execute ie.show_tables?
  
 For issues above, any suggestion are appreciated.
  
 Thanks,
 -Wiston.
  
  



 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Google test automation conference

2008-10-22 Thread Bret Pettichord

You have to apply to attend and there are not that many seats available. 
So most people that want to go, don't tell others to improve their odds 
of getting chosen.

Bret

Michael Hwee wrote:
 Same here.
 Found out too late.


 --- On Wed, 10/22/08, Lisa Crispin [EMAIL PROTECTED] wrote:

   
 From: Lisa Crispin [EMAIL PROTECTED]
 Subject: [wtr-general] Re: Google test automation conference
 To: watir-general@googlegroups.com
 Date: Wednesday, October 22, 2008, 12:42 PM
 I never hear about this conference until it's too late
 to plan to go.
 Someone please announce it to this list next year!
 -- Lisa

 On Tue, Oct 21, 2008 at 4:57 PM, Paul Rogers
 [EMAIL PROTECTED] wrote:

 
 Is any one going to this? I will be there.

 Paul

   
 -- 
 Lisa Crispin
 Co-author with Janet Gregory, _Agile Testing: A Practical
 Guide for Testers
 and Agile Teams_ (Addison-Wesley 2009)
 http://www.agiletester.ca
 http://lisa.crispin.home.att.net
 http://lisacrispin.blogspot.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: click_no_wait doesn't work when called again

2008-10-23 Thread Bret Pettichord

What happens if you change the second call to click_no_wait to call 
click instead. Do you get an error? What is the error message?

Bret


babylonrei wrote:


 2008/10/22 Bret Pettichord [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]


 What happens if you add a sleep statement at the location
 indicated below?

 ayanami wrote:
  I'm using method click_no_wait to solve the file download case.
  The problem is that the first time i use click_no_wait to click
 a link
  then a File Download window can be showed.
  but after that I do the same thing again then no File Download
 window
  popup.It like nothing  has been done.
 
  the script is like:
 
 
  ie = Watir::IE.new
  ie.goto(An URL)
  ie.link(:id,).click_no_wait   #here is normal,with the next
  sentence I successfully download a file.
  file_download_method
 

 - Add sleep here
  ie.link(:id,).click_no_wait   #nothing happened here...and
  also no error occured.if I write ie.link(:id,).click instand
  then a file download windows will be showed...
  file_download_method
 
 
  
 


 i did this ,but have no effect.
 i print some infomation to debug the programme,i found that the
 second click_no_wait has been executed.
 but i wonder why i didn't see the FileDownload Dialog?
  
  I'm using method click_no_wait to solve the file download case.
  The problem is that the first time i use click_no_wait to click
 a link
  then a File Download window can be showed.
  but after that I do the same thing again then no File Download
 window
  popup.It like nothing  has been done.
 
  the script is like:
 
 
  ie = Watir::IE.new
  ie.goto(An URL)
  ie.link(:id,).click_no_wait   #here is normal,with the next
  sentence I successfully download a file.
  file_download_method
 

 - Add sleep here
  ie.link(:id,).click_no_wait   #nothing happened here...and
 *i add some print ihere and i can see cmd print my infomation*
  also no error occured.if I write ie.link(:id,).click instand
  then a file download windows will be showed...
  file_download_method

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to determine a container type from a variable assignment

2008-10-23 Thread Bret Pettichord

Great. I hope others reading can also understand this solution and 
realize that it represents a general solution to a common problem that 
people often ask about.

The problem: How do i find a page element that meets a complex set of 
criteria, possibly including relationships with other objects.

Solution: Don't try to navigate for it yourself. Instead create a 
one-parameter method on Watir::Element that can detect the page element 
you are looking for and then let Watir find it.

Please ask questions if it isn't clear when or how this technique works.

Bret

niartseoj wrote:
 Hello Bret,

 Thanks for taking time to help me. You were able to descripher my
 example perfectly and your suggestion works great.

 I learned a great deal from this example, thanks again for your time.

 On Oct 23, 12:04 pm, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 Thanks for sharing your code. I *think* i know what you are trying to
 do, and there is a way to do this in Watir that is elegant and so far,
 undocumented. I will try to explain it, and if this doesn't work for
 you, please provide more information about what you want to do (and less
 about how you are doing it).

 To me it sounds like you are looking for a cell in a table that has a
 person's name, and image, and a link. And what you want is the link.

 This definition should appear at top level:

 class Watir::Element
   def has_enabled_image_and_text_is name
 text == name  self.image(:src, /enabled/).exists?
   end
 end

 Put this in your test

 t = ie.table(:index, 7)
 $atag = t.cell(:has_enabled_image_and_text_is =
 _userid.to_s).link(:index, 1)

 Please let me know if this works and if I understand what you are trying
 to do.

 Bret

 niartseoj wrote:
 
 Hello
   
 I'm trying to find the method to run in order to determine if a
 variarable is a container and if so what sort of container it is.
   
 I'm doing this because i have to loop through a table, and identify if
 there is a cell that contains a link with a matching name and a
 certain type of image object.
   
   t = ie.table(:index,  7)  # since we
 don't have ID's, look at every table
  for i in 1..t.row_count  # for every row in this
 table
   t[i].each do |cell|# for every column in this
 row, look at its contents
  if cell.text == _userid.to_s
  if cell.image(:src, /enabled/).exists?
$atag = cell.link(:index,1)
  end
 end
  end
  end
   
  puts $atag.control_type
   
 In this code i need to handle if the $atag is set or if it is nill .
   
 I'm a neewbie in ruby and watir and i've been going through all the
 helpfiles and examples that i can find to do this but no luck,
   
 Thanks in advance for any help or direction to my search.
   
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Problems using visible

2008-10-23 Thread Bret Pettichord

This code is IE specific.

al3kc wrote:
 Should this work for FireWatir? I tried to change it for
 FireWatir::Element but it doesn't work.

 Željko Filipin [EMAIL PROTECTED] wrote:
   
 On Mon, Sep 8, 2008 at 5:48 PM, Bret Pettichord [EMAIL PROTECTED] wrote:
 
 I think you need to require something before using this method. Any one?
   
 http://wiki.openqa.org/pages/viewpage.action?pageId=1119
 

 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: table row_count incorrect

2008-10-24 Thread Bret Pettichord

I've just added new method 
Watir::Table#row_count_excluding_nested_tables with this functionality. 
It will be in Watir 1.6.

Bret


Moochie wrote:
 Let's just use this and call it a day.

 #Get actual row count when enbedded tables exists
 def get_row_count_minus_enbedded_rows(table)
 num_rows=0
 begin
   (1..table.row_count).each do |i|
 num_rows = i
 table[i]
  end
 rescue
   end
   return num_rows
 end






 On Oct 24, 11:27 am, Nathan Lane [EMAIL PROTECTED] wrote:
   
 The whole point is DON'T support the plethora of browsers available -- only
 the new ones that implement web standards, which is basically the law now
 for all major competitors - and if your using some niche browser then I'd
 hope you to expect problems with websites. Here are a couple of my
 references (not for the weak of heart 
 ;))http://veerle.duoh.com/blog/comments/starting_with_css_and_bug_fixing...http://veerle.duoh.com/blog/comments/does_flash_irks_me/http://alistapart.com/articles/tohell/

 In the time and age we live in, we don't have a need to support bad
 browsers or browsers that don't comply to web standards, we really don't.
 The vendors don't support them so why should we, really -- and this coming
 from somebody who is told that he must support IE 6 because one whole
 division of our company will not upgrade even though they can and should. I
 know that it's a reality that people still write terrible web sites that try
 to support old browsers when they should just tell people to upgrade, but it
 shouldn't be required of a project used to test those websites. I reaffirm
 that since we have a work around, we should leave it at that and put it in
 the wiki somewhere for those people who must deal with poorly developed
 websites, especially those that use HTML and XHTML elements incorrectly. And
 that's why we have a wiki - we don't need to be sorry that our tool doesn't
 work with bad websites, and we can provide workarounds for people testing
 them. It just seems like a better idea than mucking up the project with
 stuff that isn't standard. That's my opinion, restated.

 This coupled with the fact that many testers cannot control and/or dictate
 such things leaves us between an ideal that is somewhat less than
 obtainable.

 Testers can dictate this information and have the ability to change what's
 going on and inform their developers that what they are doing is wrecking
 the site. That is one of the jobs of testers. Now depending on the company,
 and politics involved, there may need to be some intervention, but all
 companies irregardless of size, location, or power in the world need to
 realize that web standards help everybody and are built on the basis of
 being accessible, which apparently is written into law these 
 days:http://alistapart.com/articles/politics/

 Anyway, there you go, I'm a tester and a developer, but testing is my job
 and if I see something that isn't web standards on our site then I question
 it, write it up as a request/defect and then attend the meeting to help
 people understand it, deal with it, and get it fixed. If my company were
 using tables for layout, then I'd tell them that's the wrong way to go, but
 as it is they only use tables for tabular data.

 Nathan





 On Fri, Oct 24, 2008 at 10:13 AM, andy sipe [EMAIL PROTECTED] wrote:
 
 Just a comment on the standards vs reality thing:
   
 While I understand and advocate the push to use correct and standard html,
 the reality is that it isn't very common to have 100% validated sites.   In
 fact, I cannot point to a single time where a project I worked on had every
 page 100% valid.   I'd be very surprised to find sites of any size and scope
 that meet this criteria while supporting the plethora of browsers versions
 available in the wild.
   
 This coupled with the fact that many testers cannot control and/or dictate
 such things leaves us between an ideal that is somewhat less than
 obtainable.
   
 Watir is a good tool because it does not always point back to standards as
 an out when something doesn't work.   In my opinion, if it can be rendered,
 watir should work with it.   Maybe this isn't always workable but in a lot
 of cases it works just fine.
   
 -andy
   
 On Fri, Oct 24, 2008 at 11:42 AM, Nathan Lane [EMAIL PROTECTED]wrote:
   
 This is the XHTML document:
 http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-tables.html
 And attached are my two tests. InvalidMarkup... contains both the
 results of the W3C Validator test and a testtables.html containing inner
 tables, and ValidMarkup... contains both the results of the W3C Validator
 test and a testtables.html NOT containing inner tables.
 
 Just for reference.
 
 On Fri, Oct 24, 2008 at 9:18 AM, Nathan Lane [EMAIL PROTECTED]wrote:
 
 I'm wondering whether or not this should be a defect really, because
 according to this standards document about tables (
 

[wtr-general] Re: 'ruby-coding conventions'

2008-10-27 Thread Bret Pettichord

This looks pretty good, although I disagree with a few of the 
recommendations.

http://www.caliban.org/ruby/rubyguide.shtml

Bret

aidy lewis wrote:
 Hi,

 My boss has just asked for a Ruby coding conventions document. I don't
 know of one; I know there are Ruby idioms outlined in 'The Ruby Way',
 but not an official document.

 Does anyone have or know off a Ruby coding conventions document?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Directory Comparison

2008-10-27 Thread Bret Pettichord

Everyday Scripting With Ruby, by Brian Marick, has a chapter describing, 
step by step, how to develop a program that compares files in directories.

Bret


[EMAIL PROTECTED] wrote:
 All,

 I am attempting to compare two file directories, both containing .xml
 files.  If a filename is present in both directories, I want to
 compare the two files, looking for any differences.  If a filename is
 only present in one of the directories, I want to send the filename to
 a file that contains a list of the files only found in one of the
 directories.  Does anyone know of a good way of comparing the contents
 of a directory with Ruby?  Thank you in advance for your help.

 - Shelton
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: RubyGem version error | Builder error.

2008-10-28 Thread Bret Pettichord

I have no idea what you are doing when you get this error. Some context 
would help.

You could also try gem install hoe

Bret


High Bits Perf Tester wrote:
 When running through the tutorial Im getting this error:
 C:/Apps/Ruby/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
 `report_activate_error': RubyGem version error: hoe(1.7.0 not =
 1.8.1) (Gem::LoadError)

 I saw an eariler post say that this was needed to be done:
 just needed to do: gem install builder

 When I try installing the gem I get the following error And I still
 get the error above.
 (Any idea's?)

 C:\Apps\Rubygem install builder
 Successfully installed builder-2.1.2
 1 gem installed
 Installing ri documentation for builder-2.1.2...
 ERROR:  While generating documentation for builder-
 ... MESSAGE:   Unhandled special: Special: type=17,
 ... RDOC args: --ri --op C:/Apps/Ruby/lib/ruby/gems
 itle Builder -- Easy XML Building --main README --l
 ES Rakefile README doc/releases/builder-1.2.4.rdoc
 oc doc/releases/builder-2.1.1.rdoc
 (continuing with the rest of the installation)
 Installing RDoc documentation for builder-2.1.2...

 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Problems using visible

2008-10-29 Thread Bret Pettichord

I opened up a ticket with your suggestion. Would you mind updating it 
with your latest code?
http://jira.openqa.org/browse/WTR-262


Tony wrote:
 Was running the tests for some time .. and suddenly i started getting
 wrong results for visible.
 Look like the #{element_object} was returning null sometimes. Dont
 know why
 Started working after adding assert_exists
 Heres the updated code -

 class Element
 def visible?
  assert_exists
  jssh_command = var val = 'true'; var str = ''; var obj =
 #{element_object}; while (obj != null) { try { str =
 document.defaultView.getComputedStyle(obj,null).visibility; if
 (str=='hidden') { val = 'false'; break; } str =
 #{DOCUMENT_VAR}.defaultView.getComputedStyle(obj,null).display; if
 (str=='none') { val = 'false'; break; }  } catch(err) {} obj =
 obj.parentNode; } val;
  jssh_socket.send(#{jssh_command}\n, 0)
  vals = read_socket()
  return (vals == 'false')? false: true
 end
 public:visible?
 end


 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: IE.new_process does not work correctly with $HIDE_IE

2008-10-30 Thread Bret Pettichord

I spent some time researching this but could not find a fix.

Bret

Sergio Oliveira wrote:

 I need to run scripts concurrently, so each one has its own set of 
 cookies, etc.

 In other words I need isolated sessions so that I can simultaneously 
 log to different gmail accounts for example.

 As my understanding, the solution for that under Internet Explorer is 
 to open a new process each time, in other words, to use IE.new_process 
 instead of IE.new.

 So far so good, but IE.new_process *does* pop up the browser window 
 into the screen before hiding it.

 When I was using IE.new this was not happening. No IE at all in my screen.

 So my questions are:

 1) Is there a way to fix the hide functionality (-b) for 
 IE.new_process ???

 2) If the answer to 1) is no, is there anyway to use IE.new and still 
 have an isolated session so that I two different scripts running 
 concurrently can log to two different gmail accounts?

 Thanks very much!

 -Sergio

 PS: I am running a bunch of scripts as I work in my desktop box. So I 
 keep getting a browser in front of me. This will get annoying after 
 some time. Just the big picture so that someone may comeup with 
 another out-of-the-box solution. :-)


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Can I change status of a test (in test unit)

2008-10-31 Thread Bret Pettichord

LanOK wrote:
 One of my tests always returns error, so I want to change it's status
 in to pass.
  I'm using test unit.
 Does anybody know how make test unit not to register an error in
 this test?
If i have a bad test that i don't want to delete, i change its name to 
xtest_whatever. Then it won't be run any more.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-31 Thread Bret Pettichord

I've reproduced the problem. Another workaround is to add gem 'watir' 
to the top of the script. I'm trying to understand more about why this 
is happening.

As background, Watir 1.6 now autoloads firewatir original-watir (now 
called watir-ie) or safariwatir based configuration. This is where the 
problem is occuring.

Bret

Bret Pettichord wrote:
 Good report. This shouldn't be happening. Let me figure out what is 
 going on. Thanks for posting your workaround.

 Bret


 Tony wrote:
   
 While trying to run a testcase i keep getting an error -
 This is the script -
 require 'watir'
 Watir::Browser.default = 'ie'
 brow = Watir::Browser.new()
 brow.goto(http://www.aol.com;)
 brow.close

 tried with both firefox and ie and i get the same error
 watir-common-1.6.0/lib/watir/browser.rb:20:in `klass': (eval):1:in
 `klass': uninitialized constant Watir::IE (NameError)
 watir-common-1.6.0/lib/watir/browser.rb:20:in `klass': (eval):1:in
 `klass': uninitialized constant FireWatir::Firefox (NameError)

 Made changes to browser.rb, added this at the beginning of the file to
 make it work-
 require 'watir/options'
 require 'watir/ie'
 require 'firewatir'

 -Tony
 
   
 


 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Watir 1.6.1 is available for testing

2008-10-31 Thread Bret Pettichord

I have built and uploaded Watir 1.6.1. This fixes all of the 
install/load problems reported by MarekJ and Tony, and in fact has a 
simplified install process.

Details here
http://wiki.openqa.org/display/WTR/Development+Builds

Please let me know of any trouble with this. If it looks good, I will 
upload it to Rubyforge. Thanks for your help.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-31 Thread Bret Pettichord

Tiffany,

I broke all of the watir/firewatir unit tests when run from gems. At 
this point you need to run them
out of trunk. I'll update the 1.6. page.

How badly do you all want me to fix this?

Bret

Tiffany Fodor wrote:
 Hi All!

 I've been trying to run the FireWatir 1.6.0 unit tests, but each time
 I get the following error as they start:

 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/unittests/setup.rb:14:
 uninitialized constant Watir::Browser (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 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/unittests/
 mozilla_all_tests.rb:3

 This happens with both the mozilla_all_tests.rb and
 attach_to_new_window_test.rb.  I followed the installation
 instructions on the FireWatir Installation page (http://
 wiki.openqa.org/display/WTR/FireWatir
 +Installation#FireWatirInstallation-ffsettings) and I've gone through
 the FireWatir Troubleshooting page (http://wiki.openqa.org/display/WTR/
 FireWatir+Troubleshooting), but I can't find anything wrong with my
 setup.

 Any ideas?

 Thanks!

 -Tiffany

 On Oct 31, 9:42 am, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 I've reproduced the problem. Another workaround is to add gem 'watir'
 to the top of the script. I'm trying to understand more about why this
 is happening.

 As background, Watir 1.6 now autoloads firewatir original-watir (now
 called watir-ie) or safariwatir based configuration. This is where the
 problem is occuring.

 Bret

 Bret Pettichord wrote:
 
 Good report. This shouldn't be happening. Let me figure out what is
 going on. Thanks for posting your workaround.
   
 Bret
   
 Tony wrote:
   
 While trying to run a testcase i keep getting an error -
 This is the script -
 require 'watir'
 Watir::Browser.default = 'ie'
 brow = Watir::Browser.new()
 brow.goto(http://www.aol.com;)
 brow.close
 
 tried with both firefox and ie and i get the same error
 watir-common-1.6.0/lib/watir/browser.rb:20:in `klass': (eval):1:in
 `klass': uninitialized constant Watir::IE (NameError)
 watir-common-1.6.0/lib/watir/browser.rb:20:in `klass': (eval):1:in
 `klass': uninitialized constant FireWatir::Firefox (NameError)
 
 Made changes to browser.rb, added this at the beginning of the file to
 make it work-
 require 'watir/options'
 require 'watir/ie'
 require 'firewatir'
 
 -Tony
 
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-31 Thread Bret Pettichord

Tiffany Fodor wrote:
 Hi again!

 I had previous versions of Watir installed (1.5.2 and 1.5.3) as well
 as 1.6.0.  My problem went away when I uninstalled all of the versions
 and reinstalled 1.6.0.
   
Interesting. This shouldn't be necessary, so I'd like to learn more 
about these problems (from you or others).
 I haven't done a ton of testing FireWatir yet, but here are a couple
 of issues I've come across.

 1.  There doesn't seem to be support for the Watir::Browser.find
 method in 1.6.0 with IE or Firefox.  (Maybe you just haven't got to
 this yet.)
   
This is true. There is no support for this command with Firefox. I've 
added this to the list.
http://wiki.openqa.org/display/WTR/Firewatir+Compatibility
 2.  Working with links using the link text may be different with
 FireWatir.  For example, my application's login page has a link with
 text Login.

 the command fox.link(:text, 'Login').click gives the following error:

 Watir::Exception::UnknownObjectException: Unable to locate element,
 using :text, Login
 from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/lib/
 firewatir/MozillaBaseElement.rb:967:in `assert_exists'
 from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/lib/
 firewatir/MozillaBaseElement.rb:1125:in `click'
 from (irb):58

 but using a regex for the link text works - fox.link(:text, /
 Login/).click

 I've used the DOM inspector in Firefox and found that there may be a
 leading and trailing space around the text, so I tried fox.link(:text,
 ' Login ').click but that doesn't work either.

 Is this just a difference in working with Firefox versus IE?  Clicking
 on the link using text 'Login' works fine in IE.  I'll keep working on
 this here to see if it's just something strange with our application.
   
I've seen reports of this before, but haven't not been able to 
reproduce. You provide some interesting details. Can you provide a page 
that we can reproduce this problem with?


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir 1.6.0 Available for Preview Testing

2008-10-31 Thread Bret Pettichord

Thanks for the report and the fix. This is also something I've heard 
about, but had not been able to reproduce.

Can you show us a page that demonstrates this problem?

Bret

Michael Hwee wrote:
 On Firewatir, extracting text from ff gives extra special chars.
 For example, I got extra ox160 and some other weird chars.
 String-matching almost always failed.

 Wrote cleaning method to clean up the extracted text.

 def cleanText dirty_text
 newstr = 
 dirty_text.length.times do |i|
 character = dirty_text[i]
 #puts character
 newstr += if (character = 0x20  character  0x80)
 character.chr
   elsif character == 160
  
 else
 
 end
 end
 newstr
 end




 - Original Message 
 From: Tiffany Fodor [EMAIL PROTECTED]
 To: Watir General watir-general@googlegroups.com
 Sent: Friday, October 31, 2008 2:32:39 PM
 Subject: [wtr-general] Re: Watir 1.6.0 Available for Preview Testing


 Hi again!

 I had previous versions of Watir installed (1.5.2 and 1.5.3) as well
 as 1.6.0.  My problem went away when I uninstalled all of the versions
 and reinstalled 1.6.0.

 I haven't done a ton of testing FireWatir yet, but here are a couple
 of issues I've come across.

 1.  There doesn't seem to be support for the Watir::Browser.find
 method in 1.6.0 with IE or Firefox.  (Maybe you just haven't got to
 this yet.)

 2.  Working with links using the link text may be different with
 FireWatir.  For example, my application's login page has a link with
 text Login.

 the command fox.link(:text, 'Login').click gives the following error:

 Watir::Exception::UnknownObjectException: Unable to locate element,
 using :text, Login
 from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/lib/
 firewatir/MozillaBaseElement.rb:967:in `assert_exists'
 from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/lib/
 firewatir/MozillaBaseElement.rb:1125:in `click'
 from (irb):58

 but using a regex for the link text works - fox.link(:text, /
 Login/).click

 I've used the DOM inspector in Firefox and found that there may be a
 leading and trailing space around the text, so I tried fox.link(:text,
 ' Login ').click but that doesn't work either.

 Is this just a difference in working with Firefox versus IE?  Clicking
 on the link using text 'Login' works fine in IE.  I'll keep working on
 this here to see if it's just something strange with our application.

 Thanks so much for all your work on this.  I'm so excited to get tests
 running against Firefox!

 -Tiffany

 On Oct 31, 2:14 pm, Tiffany Fodor [EMAIL PROTECTED] wrote:
   
 Hey Bret!

 I don't really need the unit tests.  I first tried to get some of my
 existing tests to run with FireWatir and when they failed, decided to
 try out the unit tests to see if the problem was in my tests.  I'm
 getting the same error when I try to run my tests in Firefox.

 I don't want to take up your time with something that might be a
 problem with my configuration - I'll do some more digging.  I'm
 currently using Vista, so I'll try to do a new install on Vista and if
 that doesn't work, I'll give it a shot on XP to try to narrow in on
 the problem.

 I did run some of my tests on IE without any problems.  :)

 -Tiffany

 On Oct 31, 1:57 pm, Bret Pettichord [EMAIL PROTECTED] wrote:

 
 Tiffany,
   
 I broke all of the watir/firewatir unit tests when run from gems. At
 this point you need to run them
 out of trunk. I'll update the 1.6. page.
   
 How badly do you all want me to fix this?
   
 Bret
   
 Tiffany Fodor wrote:
   
 Hi All!
 
 I've been trying to run the FireWatir 1.6.0 unit tests, but each time
 I get the following error as they start:
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/unittests/setup.rb:14:
 uninitialized constant Watir::Browser (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 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.0/unittests/
 mozilla_all_tests.rb:3
 
 This happens with both the mozilla_all_tests.rb and
 attach_to_new_window_test.rb.  I followed the installation
 instructions on the FireWatir Installation page (http://
 wiki.openqa.org/display/WTR/FireWatir
 +Installation#FireWatirInstallation-ffsettings) and I've gone through
 the FireWatir Troubleshooting page (http://wiki.openqa.org/display/WTR/
 FireWatir+Troubleshooting), but I can't find anything wrong with my
 setup.
 
 Any ideas?
 
 Thanks!
 
 -Tiffany
 
 On Oct 31, 9:42 am, Bret Pettichord [EMAIL PROTECTED] wrote:
 
 I've reproduced the problem. Another workaround is to add gem 'watir'
 to the top of the script. I'm trying to understand more about why this
 is happening

[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-03 Thread Bret Pettichord

I've been testing with Ruby 186-26.

Watir 1.5 also required win32-process (0.5.5). Can you give more 
information about how you are installing it? The gem installer should be 
automatically installing this gem.

Bret

JArkelen wrote:
 Hi,

 Which version of Ruby should I install to make Watir 1.6.1 work?
 I tried both 185-24 and 186-26, but when trying to install watir, I
 get the message Error installing watir: watir requires win32-process
   
 = 0.5.5
 

 Cheers,
 John
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-04 Thread Bret Pettichord

As I just mentioned to Jim, IE is renaming the gems. You need to name 
them back to their original names.

I've updated the notes on the download page.
http://wiki.openqa.org/display/WTR/Development+Builds

Bret


Bret Pettichord wrote:
 JArkelen wrote:
   
 When I use the instructions from this article:
 http://justaddwatir.com/watir/q-how-do-i-gem-install-watir-behind-a-proxy-server,
 then I don't get the previously mentioned error anymore. But when I
 use gem install watir-1.6.1, the I get the following error: watir
 requires commonwatir = 1.6.1.
 Both commonwatir and firewatir are in the same directory however. And
 when I decide to install commonwatir first, it requires a lot of other
 gems, like user-choices and xml-simple. Any suggestions?
 
 Suggestions:
 1. Don't rename the gems. (The gem installer can't find them if you do 
 this.)
 2. Use watir not watir-1.6.1 in your gem install command.
 3. Since you are behind a firewall, you should specify a http proxy 
 whenever using the gem install command. (I'm not able to access the 
 justaddwatir page right now, but i think it suggests that you download 
 and manually install all dependent gems. This is an extremely complex 
 and laborous procedure and I don't recommend it. Instead use HTTP_PROXY.)


 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir 1.6.1 is available for testing

2008-11-05 Thread Bret Pettichord

The Browser.new interface should work with the existing SafariWatir 
code. As far as I know, no one has tested it (except, now, you). In any 
case SafariWatir is currently Mac-only.

To use this (on mac), you will have to first install SafariWatir (gem 
install safariwatir).

Bret


JArkelen wrote:
 Done.
 The new version also supports Safari right? I assume the Windows
 version of safari?
 When I set the browser to safari in options.yml and run a test, I get
 this error:

 c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.1/lib/watir/browser.rb:
 75:in `kla
 ss': (eval):1:in `klass': uninitialized constant Watir::Safari
 (NameError)
 from c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.1/lib/
 watir/browser.
 rb:65:in `eval'
 from c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.1/lib/
 watir/browser.
 rb:75:in `klass'
 from c:/ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.1/lib/
 watir/browser.
 rb:65:in `new'
 from C:/unzipped/watirtest.rb:5

 On Nov 5, 3:55 pm, Bret Pettichord [EMAIL PROTECTED] wrote:

   
 Great suggestion. Would you mind making this change?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Don't put include Watir at toplevel

2008-11-07 Thread Bret Pettichord

We've been recommending against using include Watir at toplevel for 
some time. With Watir 1.6, it will break scripts. Details:

http://wiki.openqa.org/display/WTR/include+Watir

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Quick Start, Unit Tests, Server 2003 sp2

2008-11-07 Thread Bret Pettichord

Please go ahead and update the wiki.

Bret

Chuck vdL wrote:
 Should I just update the Wiki page for this portion or the quickstart/
 tutorial ?  or are there only specific folks that should be updating
 those pages?

 I also found one other discrepency that I noted, which was at the
 point where the quickstart had me enter
   ie.text_field(:name, q).set Watir

 and the expected response was given as true  (sans quotes).  but
 what I saw appeared to just be an empty string as demarked by a pair
 of double-quotes  ()

 Is that an error in the quickstart doc, or should the set message be
 returning true on success and it's not?

 On Nov 3, 2:12 pm, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 Thanks for the info.



 [EMAIL PROTECTED] wrote:
 
 Hey folks, apologies if this is not be proper venu for this info.. but
 I'm brand new to Watir and this group.
   
 Just starting out, going through the Quick start using Watir v1.5.6
 and I wanted to note that the info given regarding the IE settings
 change needed for XPsp2 (Enabling Active Content for local files on my
 computer) applies to Server 2003 SP2 as well.
   
 I was getting errors (19 of them) running the unit tests,  Made that
 single change, and now the unit tests run without errors.
   
 FYI: not that I expect it would matter, but this 2003 Server is
 actually a virtual machine, hosted under Server2008 Hyper-V, running
 the VM console on a Vista system.   So far no issues with Ruby or
 Watir in that environment, but I'll be sure to let you know if
 something turns up.
   
 --Chuck- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir 1.6.2 has been uploaded to Rubyforge

2008-11-10 Thread Bret Pettichord

We run our unit tests on every change. The results are posted here.
http://watirbuild.com/

As Marek said, the issue being discussed is about packaging the unit 
tests, not getting them to pass.

Bret

Chuck vdL wrote:

 On Nov 7, 8:43 am, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 Comments inline.

 
  snip
   
 CONCLUSION:
 I would like to run tests after gems are installed. I think most users
 want to do that so they can see watir in action.
   
 Unfortunately this is not easy to fix right now. We are about half-way
 to the point of having a merged watir/firewatir testsuite, at which
 point the tests will be in the commonwatir module, not watir or
 firewatir. Would you like to help with this? I've found it to be much
 more time consuming than I originally expected.
 

 I realize there are 'good reasons' for this, but from the outside
 persective of someone new to Watir, not having running unit tests
 really gives a bad impression.. it makes people question if you are
 really doing 'test first' development, and makes people wonder things
 like 'how can they know this thing even works right if it's released
 without unit tests in a running condition?

 Do you really intend to release 1.6  (e.g. it's what gets installed if
 someone does 'gem install watir' ) without unit tests working?

 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Tutorial Examples now 'missing'

2008-11-10 Thread Bret Pettichord

It is unclear to me what examples you mean.

Examples that had been included in the 1.5 source tree were moved to the 
wiki.
http://wiki.openqa.org/display/WTR/Examples

Bret


Chuck vdL wrote:
 I think I found them back on the 1.5 branch, but the trunk based links
 to the Examples folder given in the tutorial are no longer working.

 I installed watir just before you bumped to 1.6  but have been busy
 with other things at work and was just now starting on the tutorial.

 Is someone slated to go through the tutorial examples and make sure
 they work correctly with 1.6?   If not I suppose I could try doing
 this, since I'm a totally fresh set of eyes that might be good, but
 since I'm new to watir and ruby it might be a wee bit difficult for me
 to differentiate between my own mistakes and errors due to changes in
 1.6

 I suppose I can set-up a different VM or snapshot tree and put 1.6 on
 it, and then compare the results with the existing VM I've got 1.5
 installed on..  (total Hyper-V addict here), which should allow me to
 tell if the code works on one and not the other.
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Tutorial Examples now 'missing'

2008-11-10 Thread Bret Pettichord

Thanks. These links need to be updated. Any volunteers?

Bret

Chuck vdL wrote:
 two links on this page  http://wiki.openqa.org/display/WTR/Example+Test+Case

 right below the header google test search

 They point at:
   http://svn.openqa.org/svn/watir/trunk/watir/examples/google_search.rb
   http://svn.openqa.org/svn/watir/trunk/watir/examples/


 On Nov 10, 7:51 am, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 It is unclear to me what examples you mean.

 Examples that had been included in the 1.5 source tree were moved to the
 wiki.http://wiki.openqa.org/display/WTR/Examples

 Bret



 Chuck vdL wrote:
 
 I think I found them back on the 1.5 branch, but the trunk based links
 to the Examples folder given in the tutorial are no longer working.
   
 I installed watir just before you bumped to 1.6  but have been busy
 with other things at work and was just now starting on the tutorial.
   
 Is someone slated to go through the tutorial examples and make sure
 they work correctly with 1.6?   If not I suppose I could try doing
 this, since I'm a totally fresh set of eyes that might be good, but
 since I'm new to watir and ruby it might be a wee bit difficult for me
 to differentiate between my own mistakes and errors due to changes in
 1.6
   
 I suppose I can set-up a different VM or snapshot tree and put 1.6 on
 it, and then compare the results with the existing VM I've got 1.5
 installed on..  (total Hyper-V addict here), which should allow me to
 tell if the code works on one and not the other.- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Need help on installing Rails

2008-11-11 Thread Bret Pettichord

Or you can use Ruby 1.8.6 and Watir 1.6.2. The modal dialog support has 
been updated to work with Ruby 1.8.6.

Alex Collins wrote:
 For the rails aspect, you should probably search / ask a rails group. 

 However, you should be able to install two versions of ruby - and use 
 a custom PATH variable for the command window you start watir in to 
 point to the older version on ruby. You will obviously need to ensure 
 that you Use the correct ruby installs when installing gems etc.

 Eg
 Set PATH=c:\old-ruby\bin;%PATH%

 Hope this helps.

 Alex  

 On 11 Nov 2008, at 05:26, pramod D [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:



 Hi All,
 My application runs only on IE and uses lots of modal window for this 
 reason i have installed Ruby 1.8.2, and now i am  trying to  install  
 Rails 1.2.3, but throws  error and it is expecting  Ruby 1.8.5 . Can 
 any body tell me  what version of Rails i need to install . Its very 
 urgent kindly help me.

 Error i got is:- ERROR:  While executing gem ... (RuntimeError)
 rails-toolkit requires Ruby version = 1.8.5

 Thanks,
 Pramod.D



 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: require firewatir in 1.6.2

2008-11-11 Thread Bret Pettichord

aidy lewis wrote:
 Do we still need to require 'firewatir' in 1.6.2. 
Probably not, although it doesn't hurt.
 And if not shall I
 'gem unistall firewatir'?
   
Only if you aren't going to use it. Although again it doesn't hurt to 
leave it.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Help needed documenting Watir 1.6 roll out

2008-11-12 Thread Bret Pettichord

Thanks so much for your help.

I'm not sure what to do about the Logger. At heart, I would want to 
remove it from Watir. It is neither IE-specific, nor Watir specific. It 
is just sample code on how to create a Watir, and as such is really 
example code rather than something that should be included in a library 
for a browser driver.

Bret


Gavin Jefferies wrote:
 On Mon, Nov 10, 2008 at 7:24 AM, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 First of all, I need help from some one who will read everything I post
 to this list. We are already getting several questions on this list
 which I have already answered in previous emails, or in wiki pages that
 I have posted references to. My longstanding policy has been that I
 answer a question about twice and then I expect that others will help
 users with the issue going forward, perhaps updating the FAQ. We may
 need a special FAQ for upgrading to 1.6, as it has a few more
 complications than previous releases.
 

 I'll try to back you up on this.

   
 Second, the tutorial and examples need to be reviewed and updated. I'm
 not sure if they work with 1.6 or not and someone needs to check them.
 Two things specifically: we need to make sure they don't have include
 Watir at toplevel and they should now have Browser.new instead of IE.new.
 

 From a site search on the include Watir issue I found, updated and checked:

 http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir
 http://wiki.openqa.org/display/WTR/Simple+Ajax+examples

 On the IE.xxx that could be Browser.xxx I updated and checked:

 http://wiki.openqa.org/display/WTR/Yahoo+Print+Assertions
 http://wiki.openqa.org/display/WTR/Yahoo+Checkbox+Test
 http://wiki.openqa.org/display/WTR/Simple+Example
 http://wiki.openqa.org/display/WTR/Google+Test+Suite
 http://wiki.openqa.org/display/WTR/Google+Search
 http://wiki.openqa.org/display/WTR/Google+Maps+Example

 Then I got bogged down in firefox's lack of a logger.

   
 This documentation is now quite out of date.
 http://wiki.openqa.org/display/WTR/Methods+Supported+by+Element
 This needs to be updated by reading the release notes, unit tests, and
 perhaps by inspecting Watir code.

 Thanks for your help.

 Bret

 Gavin Jefferies wrote:
 
 Hi Bret,

 If you are still looking for helpers let me know.

 Gavin


 On Fri, Nov 7, 2008 at 12:17 PM, Bret Pettichord [EMAIL PROTECTED] wrote:

   
 I need help documenting and supporting the Watir 1.6 release.

 So far we have run into two small problems that some people will have
 with upgrading to the new release. I've posted this information to this
 list, but we need to find a better way to document this.

 I am also busy right now upgrading the install docs for Watir to include
 information about FireWatir. Now that FireWatir is part of Watir, we
 can't treat it as a separate thing.

 I plan to spend the rest of today working on the Watir website and
 install docs and then I need to move on to the new Framework. Are you
 interested in helping out?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Firefox 2 : WATIR 1.6.2 and table operations

2008-11-12 Thread Bret Pettichord

We were not able to get table body support for firefox into this 
release. I have updated the compatibility matrix.

Bret

Natasha wrote:
 Hi All,

 I am using Watir 1.6.2 and was running my test on Firefox 2 for the
 first time.

 I found that the following code is not getting executed on Firefox:
 I have been able to execute it successfully on IE. Is it not
 supported?
 ==
 $ie.table(:index,1).body(:index, 1).each do | row |

   row.each do | cell |
   if found == 1
   if cell.text() =~ /edit/
   puts 'Editting starts 
 '
   puts ' '
   found=2
   cell.link(:index,1).click
   break
   end
   end
   if cell.text() =~ /#{ono}/
 # puts 'Found Row for order number : ' + 
 cell.text()
  found = 1
  break
   end

   end
   if found == 2
 break
   end

   end
 ==

 Thanks,
 Natasha
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: wait_until gives undefined method error

2008-11-12 Thread Bret Pettichord

I think the subject line is incorrect. Your problem is that your code to 
initialize the browser needs to be in a startup method. The error 
message you are getting is telling you that @ie is nil (because it has 
not been initialized).

Bret

maven999 wrote:
 Hi all,

 I am trying to write some code to log into an app via a pop-up window
 and then click some tabs inside it. However, when I try to encapsulate
 the login logic into a method, I get an error on console. I am pasting
 my code below followed by the console error. Any suggestions as to
 what I'm doing wrong? (I am using wait_until because my text
 verification fails as page has not loaded yet).

 require 'watir'
 require 'watir/WindowHelper'
 require 'watir/testcase'
 include Watir

 class TC_MTests  Watir::TestCase

 #Variables
 @url = 'https://1.2.3.4/'
 @login_title = 'Connect to'
 @username = 'abc'
 @password = '123'

 #Start browser
 @ie = Watir::IE.start(test_site = @url)

 #If prompted about the security certificate, click to bypass
 certification
 if @ie.contains_text(Continue to this website (not recommended).)
@ie.link(:text, 'Continue to this website (not
 recommended).').click_no_wait
 puts Bypasses the security certificate warning for now.
 end

   def test_Login
 #Use autoit to work with the authentication popup
 #Pauses execution of the script until the requested window exists
 Watir.autoit.WinWait(@login_title)
 Watir.autoit.Send(@username)
 Watir.autoit.Send('{tab}')
 Watir.autoit.Send(@password)
 Watir.autoit.Send('{enter}')
 puts Login window pop-up appears and credentials passed.

 #Wait until landing page has loaded completely
 wait_until [EMAIL PROTECTED]@username}

 #Check if correct user has logged in
 if @ie.contains_text(Logged in as:  [EMAIL PROTECTED])
   puts Test passed. User ' [EMAIL PROTECTED] +' has logged in.
 else
   puts Test failed. Login fails or incorrect user has logged in 
 end
 #End of method
   end
 #End of class
 end

 --
 I get the following error on console:


 P:\ruby c:\ruby\tests\IanTests_temp.rb
 Bypasses the security certificate warning for now.
 Loaded suite c:/ruby/tests/IanTests_temp
 Started
 Login window pop-up appears and credentials passed.
 E
 Finished in 0.297 seconds.

   1) Error:
 test_Login(TC_MTests):
 NoMethodError: undefined method `text' for nil:NilClass
 c:/ruby/tests/IanTests_temp.rb:37:in `test_Login'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir.rb:110:in
 `wait_until'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/waiter.rb:76:in
 `wait_unt
 il'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/waiter.rb:53:in
 `wait_unt
 il'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir/waiter.rb:76:in
 `wait_unt
 il'
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.6/./watir.rb:110:in
 `wait_until'
 c:/ruby/tests/IanTests_temp.rb:37:in `test_Login'

 1 tests, 0 assertions, 0 failures, 1 errors
 ___
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-11-12 Thread Bret Pettichord

the solution is to add require 'watir/ie' to your script


jpweston wrote:
 After installing WATIR 1.6.2, scripts that have the following line:
 require 'watir/contrib/enabled_popup' are causing the following error:

 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
 enabled_popup.rb:5: uninitialized constant Watir::PageContainer::Win32
 (NameError)
   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'

 Here is what I have at the top of my scripts:

 require 'test/unit'
 require 'ci/reporter/rake/test_unit_loader.rb'
 require 'watir'
 require 'watir/testcase'
 require 'watir/contrib/enabled_popup'

 class TC_sales_tests  Watir::TestCase

   include Watir

 code

 end

 Can someone point me toward what I am doing wrong here?  These scripts
 worked with the version of 1.5 that I had installed.

 Thanks.

 Johnathan
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Firewatir (1.6.2) and select_list objects

2008-11-13 Thread Bret Pettichord

This sounds like a firewatir bug.

Tiffany Fodor wrote:
 Hi!

 I apologize if you've already addressed this - I did a quick search of
 the threads and didn't see this issue.

 With Firewatir in version 1.6.2, I can't perform a 'set' on a select
 list, only 'select' works.  The 'set' method works for IE on version
 1.6.2, however.

 Here's the error message I get when trying to perform a 'set' on a
 select_list in Firewatir:

 irb $browser.select_list(:name, 'quoteState').set('Alaska')
 = TypeError: elements_select[1].set is not a function

 I can change all my 'set' methods on select_list objects to 'select'
 if this was intentional.  I just wanted to bring it up in case it was
 accidentally left out.

 Thanks!

 -Tiffany
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Firewatir (1.6.2) and select_list objects

2008-11-13 Thread Bret Pettichord

Tiffany,

Could you please log this as a Firewatir bug.

Surprisingly we have no unit tests for either select_list().set (as i 
assumed) or select_list().select (which was a surprise).

Bret

Bret Pettichord wrote:
 This sounds like a firewatir bug.

 Tiffany Fodor wrote:
   
 Hi!

 I apologize if you've already addressed this - I did a quick search of
 the threads and didn't see this issue.

 With Firewatir in version 1.6.2, I can't perform a 'set' on a select
 list, only 'select' works.  The 'set' method works for IE on version
 1.6.2, however.

 Here's the error message I get when trying to perform a 'set' on a
 select_list in Firewatir:

 irb $browser.select_list(:name, 'quoteState').set('Alaska')
 = TypeError: elements_select[1].set is not a function

 I can change all my 'set' methods on select_list objects to 'select'
 if this was intentional.  I just wanted to bring it up in case it was
 accidentally left out.

 Thanks!

 -Tiffany
 
   
 


 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Should Tutorial and Quickstart be updated to use Watir::Browser?

2008-11-16 Thread Bret Pettichord

+1

Chuck vdL wrote:
 right now both of them are very IE specific

 Shouldn't they be changed to reflect the new integration with
 Firewatir and altered so that

 * They use Watir::Browser instead of Watir::IE
 * show how to set the browser type
 * use an a generic name for the browser object other than 'ie'
 * show how to change the script from using IE, to using Firefox by
 changing the browser type (and then re-run the script)

 * Discuss FireBug along with the IE developer toolbar
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Creating a test suite script

2008-11-18 Thread Bret Pettichord

1. I don't know why it is using firefox
2. With the way you've structured your tests, you should start the 
browser in the setup file, not in each test file. That way you'll only 
have one.

Bret

Natasha wrote:
 Hi All,

 WATIR: 1.6.2
 I tried creating a wrapper script after refering to the unit test
 scripts.

 To start with, this script:
 1. Should call all or specific scripts from a folder
 2. should read from a configuration file and setup global variables.

 I have written a small script(setup.rb) after refering to setup.rb and
 core_tests.rb under watir unit tests folder:
 --

 require 'watir/browser'
 $user= 'test'
 $pwd='test'
 Watir::Browser.default = 'ie'

 TOPDIR = File.join(File.dirname(__FILE__))
 puts TOPDIR

 $all_tests = []
 Dir.chdir TOPDIR do
   $all_tests += Dir[*.rb]
 end

 $watir_only_tests = [
   setup.rb,
 ].map {|file| #{file}}

  $all_tests -= $watir_only_tests

 puts $all_tests
 sleep 20


 $all_tests.each {|x| require x}
 --

 My individual test scripts start as shown below:
 --
 require 'watir'   # the controller
 require 'test/unit'
 Watir::Browser.default = 'ie'
 $ie = Watir::Browser.new

 class test1  Test::Unit::TestCase

  @@ordernum = 0

  def test_a_orderPlacement

 end
 end
 --

 Current issues with it:
 1. Its running the tests against Firefox, though I have set
 Watir::Browser.default to ie.
 2. Also it opens up 2 firefox windows, since there are 2 test scripts
 to get executed. I want the scripts should get invoked sequentially.

 Please advise.

 Thanks,
 Natasha


 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] AWTA 2009

2008-11-18 Thread Bret Pettichord

Many of you know that every year or two I hold an event called the 
Austin Workshop on Test Automation. It brings together a small group of 
people to have detailed discussions. This January we are meeting again 
and we are focussing on Watir and the Organization.

If you might be interested in attending, please read our call for 
participation.

http://awta.wikispaces.com

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] OpenQA and Watir.com

2008-11-18 Thread Bret Pettichord

Many of you have noticed that openqa.org is not seleniumhq.org. This 
change was made earlier this week. This was something that we've known 
was coming for some time. At the same time, authentication for 
confluence and jira stopped working. This is a bug and we expect it to 
be fixed soon.

For some time, we've also been planning to migrate Watir's confluence 
and jira content to Watir.com. This has been stalled for various 
reasons, but we are more eager than ever to make this happen. Charley 
has been taking the lead in this has been working out many of the details.

Sorry for the disruption. I just wanted you all to know what the 
situation is.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: OpenQA and Watir.com

2008-11-18 Thread Bret Pettichord

Er, I meant to say openqa.org is NOW seleniumhq.org.

Bret Pettichord wrote:
 Many of you have noticed that openqa.org is not seleniumhq.org. This 
 change was made earlier this week. This was something that we've known 
 was coming for some time. At the same time, authentication for 
 confluence and jira stopped working. This is a bug and we expect it to 
 be fixed soon.

 For some time, we've also been planning to migrate Watir's confluence 
 and jira content to Watir.com. This has been stalled for various 
 reasons, but we are more eager than ever to make this happen. Charley 
 has been taking the lead in this has been working out many of the details.

 Sorry for the disruption. I just wanted you all to know what the 
 situation is.

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: HTML report class

2008-11-19 Thread Bret Pettichord

JArkelen wrote:
 I added a HTML report class example to the wiki:
 http://wiki.seleniumhq.org/display/WTR/HTML+report+class
 This class can be used to create a HTML report of a test script
 execution.
   
thanks for sharing this. could you attach a sample report to the wiki 
page? that will make users see better what it does.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)

2008-11-24 Thread Bret Pettichord

I don't want to answer Paul's questions for him, but everyone should 
understand that Watir is not for Ruby applications. It is for web 
applications written in any language. It works great for .Net applications.

Bret

aidy lewis wrote:
 Hi,
   
 For the other one, I was asked to automate an application that is written in
 .Net.  I'm just wondering if Paul or Bret have been working with the
 individuals that have put together Watin.



 There doesn't appear to be a good form on Watin like the Watir forms, I'm
 just curious on the support for it.

 

 Watir and Watin are separate projects, even though obviously Watin is
 based on Watir.

 There is a Ruby .Net bridge: Not sure how useful it will be though.

 http://rubydotnet.sourceforge.net/

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Bret Pettichord

Thanks for sharing your report. I looked at Ruby in Steel over a year 
ago and it sounds like it has made a lot of progress since then.

Back then, our developers were using Visual Studio as well. I agree that 
it is very attractive for this kind of environment.

Bret

Chuck vdL wrote:
 I'm having a look at Ruby in Steel as a potential IDE for doing
 testing automation with Watir.
  http://www.sapphiresteel.com/

 Mostly because:
  1) all my devs use Visual Studio for their work, so it puts me on the
 same platform, gives me good integration with our source control etc.
  2) Intellisense!!!   since I'm new to Watir and have not memorized
 all the applicable methods for each object etc.. and also new to
 ruby.  Well it just makes it a hell of a lot easier.
  3) awsome debugger

 Firstly:  Has anyone else looked at this?  Does anyone else use it?

 I could only find one reference here when searching this group.

 Secondly, I'm having a problem:  It appears to get Intellisense
 working, I have to add the watir code using their 'ruby librarian'
 utility.. so I pointed it at the various lib directories under c\ruby
 \lib\ruby\gems\1.8\gems   for commonwatir, firewatir, watir and asked
 it to add all the .rb files found there.

 In the process it gives me the following error
 unexpected token - '*'   htmlelements.rb  Line 1563  column 20  

  the file appears to be part of Firewatir.  Anyone here have an idea
 why it might be giving me that 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: button.Click_No_Wait only highlights the button, does not click

2008-12-01 Thread Bret Pettichord

This works for me, although I am using ie 6.0. I'm wondering if this is 
broken with ie 7. Can any one else try this out?

Bret

patrick wrote:
 hi,

 i am using the foll versions:

 win xp sp2
 ruby - 1.8.6
 watir - 1.6.2
 ie - 7.0

 my code is as follows:

 irb
 require watir
 browser = Watir::IE.start('http://www.google.com')
 browser.text_field(:name, 'q').set('Watir')
 browser.button(:name, 'btnG').click_no_wait

 however, the Google Search button is only highlighted. the button is
 not clicked and the subsequent page is not loaded. I know i can use
 click in this case, however the Click_no_wait is not working in any
 code on my pc. pls help.


 patrick.

 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Click_no_wait for firewatir

2008-12-01 Thread Bret Pettichord

I've added this to the compatiblity issues table.
http://wiki.seleniumhq.org/display/WTR/Firewatir+Compatibility

aidy lewis wrote:
 On 28/11/2008, al3kc [EMAIL PROTECTED] wrote:
   
  Hi all,

  Does click_no_wait method exists in firewatir? I didn't found it in
  firewatir sorce files and it does not work in my tests.
  I use firewatir - 1.2.1
 

 Try something like this:

 def click_no_wait(object_name)
 $jssh_socket.send(browser.contentWindow.setTimeout(function()
 {document.forms[0].#{object_name}.click()},0);\n, 0)
 self.read_socket()
 end

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: indexes with watir and firewatir

2008-12-01 Thread Bret Pettichord

I get the following error:

c:/ruby-186-26/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in 
`assert_exists': Unable to locate element, using :index, 0 
(Watir::Exception::UnknownObjectException)
from (eval):2:in `html'
from index.rb:6

Is this what you are seeing?

aidy lewis wrote:
 Hi,

 An example of the problem below

 ['watir', 'firewatir'].each { | g | require g }
 ie = Watir::IE.new
 ff = FireWatir::Firefox.new
 [ie, ff].each { |b| b.goto(http://www.google.com;) }
 ff.table(:index, 1).rows[0].html
 ie.table(:index, 1).rows[0].html


 Aidy

 On 28/11/2008, aidy lewis [EMAIL PROTECTED] wrote:
   
 Hi,

  Has anyone experienced index variations in Watir and FireWatir?

  This in FireWatir
  row.cell(:index, 0)

  Will be this in Watir
  row.cell(:index, 1)

  We think this is because Watir uses win32ole and FireWatir uses JavaScript.

  If this is a known and common bug, we will fix it.


  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Help required : Ruby code error

2008-12-01 Thread Bret Pettichord

Aidy,

Could you please create a wiki page with your list of editors. I thought 
we had a page started, but I can't seem to find it. It would be great to 
collect people's thoughts on the pros and cons of these editors for 
watir test development.

Bret

aidy lewis wrote:
 Hi Natasha,

 Below is a list of editors

 On 27/11/2008, Natasha Ranney [EMAIL PROTECTED] wrote:
   
 Hi Aidy/Charley/John,

 I am using Notepad to write my scripts and at times I use SciTE.
 

 Open-Source\Free Software

 * Netbeans Ruby: http://www.netbeans.org/downloads/index.html

 * Aptana Radrails: http://www.aptana.com/rails

 * Vim: http://www.vim.org/download.php#pc

 * Emacs: http://www.gnu.org/software/emacs/windows/Getting-Emacs.html

 Proprietary

 * Ruby in Steel for Visual Studio: http://www.sapphiresteel.com/

 * Jetbrains Rubymine: http://www.jetbrains.com/ruby/index.html

 TEXT EDITORS (with out-of-the-box Ruby Syntax highlighting)

 Open-Source

 * Notepad++: 
 http://sourceforge.net/project/showfiles.php?group_id=95717package_id=102072

 * Komodo Edit: 
 http://www.activestate.com/store/productdetail.aspx?prdGuid=20f4ed15-6684-4118-a78b-d37ff4058c5f

 Proprietary

 * E text editor: http://www.e-texteditor.com/
 Not logged in. Log in

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: get text from page (regex) assign to variable

2008-12-01 Thread Bret Pettichord

The thing to remember is that puts does an implicit to_s (or
inspect, i can't remember exactly) on its argument.

Bret

Sameh Abdelhamid wrote:
 Very nice. Thanks Wes.
 I couldnt find this anywhere!
 Cheers.


 On Wed, Nov 26, 2008 at 3:38 PM, wesley chen [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 You have to:
 workspace.text_field(:id,NUM_prcsdProductId).set(*pproduct_no.to_s*)
 Because the pproduct you created is just a matchdata, not a
 string, you have to change the format manual.

 Thanks.
 Wesley Chen.





 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Was(Re: Watir Podcast) Now(Ruby and .Net)

2008-12-01 Thread Bret Pettichord

aidy lewis wrote:
 However there are many new Watir potential users who might just know
 it as a Ruby test tool.
   
Right. And now that Ruby is becoming a popular app language, I think 
people might think the R is Watir refers to the target application.



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Bret Pettichord

Chuck vdL wrote:
  (and if these things get stuff working, do I need to raise a jira
 issue for this so we make sure to make these changes in the watir
 source?  (point me at instructions for this if they exist, so I do it
 'right'  I'm used to using Jira at work, but in my experience every
 group has their own standards for how they want bugs filed)
   
Best would be to attach a patch to a Jira ticket.
http://wiki.seleniumhq.org/display/WTR/Submitting+Code

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Bret Pettichord

Please do note that all of the examples you've found so far represent 
correct Ruby code. In many cases with Ruby, parentheses are optional.

It might be best if you reported your findings to the Ruby in Steel 
people so that they can fix their parser.

Bret


Bret Pettichord wrote:
 Chuck vdL wrote:
   
  (and if these things get stuff working, do I need to raise a jira
 issue for this so we make sure to make these changes in the watir
 source?  (point me at instructions for this if they exist, so I do it
 'right'  I'm used to using Jira at work, but in my experience every
 group has their own standards for how they want bugs filed)
   
 
 Best would be to attach a patch to a Jira ticket.
 http://wiki.seleniumhq.org/display/WTR/Submitting+Code
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir Ruby in Steel

2008-12-01 Thread Bret Pettichord

My preferred ruby style is (1) not to include parentheses when they are 
optional, and (2) not to pad them with extra spaces when they are used.

Bret

Chuck vdL wrote:
 Brett,

 ACK  I'm still at babysteps level of ruby coding and you're trying to
 turn me into a contributor aren't you ;)

 ok ok  I'll read up on patches and such and see if I can manage to
 submit something for this that doesn't totally screw up everything...

 this is how it starts isn't it.  how you rope people into working on
 open source stuff..  heh

  just wait.. I told Maura that there's docs here in need of work, and
 since she's trying to move into doing more technical editing and
 such.. I just might be able to  convince her to do a few re-writes of
 things like the tutorial and such, to ah  you know, help her build up
 a portfolio of work  muh hah hah  evil laugh and all that

 Paul,

 thanks loads.   Where are you finding the documentation like that?  I
 was looking in the ruby user's guide and the most I could find so far
 in raise said that it took a single string parameter.. so I was
 scratching my head wondering how that code even worked at all.

 heh  OK  next error..
 Unexpected token - number =   form.rb  line 135, column 15

  def flash number = 10

  I'm starting to sense a pattern here...  their parser doesn't seem to
 be very good with the places that parenthesis are implied or optional

  So re wrote it as :
  def flash( number = 10 )#is that the style you folks like in
 terms of where parethesis and spaces are place?)

 and that got me past  that one and into  element.rb,  line 238 column
 15 with exact same error.. (same code, same fix)

 Next comes ie-class.rb   line 86  column 20

 def initialize suppress_new_window=nil
   re-wrote as
 def initialize( suppress_new_window=nil )

 then  ie.class.rb  line 98  column 20

 def self.start url=nil
re-wrote as
 def self.start( url=nil )

 (bite me twice in same file, I start looking for more..  I find and
 change

 Line 104: def self.start_window url=nil
   into: def self.start_window( url=nil )

 Line 129: def self.start_process url=nil
   into: def self.start_process url=nil

 and  WOOT  'library generation complete'

 but... grumble  intellisense is not working the way I'd expect..  ok
 I'm off to the sapphiresteel forums to ask them about this...

 Thanks for the help folks.
















 On Dec 1, 11:59 am, Paul Rogers [EMAIL PROTECTED] wrote:
   
 the ri command ( ri Kernel#raise in this case ) shows
 -- Kernel#raise
  raise
  raise(string)
  raise(exception [, string [, array]])
  fail
  fail(string)
  fail(exception [, string [, array]])
 
  With no arguments, raises the exception in +$!+ or raises a
  +RuntimeError+ if +$!+ is +nil+. With a single +String+ argument,
  raises a +RuntimeError+ with the string as a message. Otherwise,
  the first parameter should be the name of an +Exception+ class (or
  an object that returns an +Exception+ object when sent an
  +exception+ message). The optional second parameter sets the
  message associated with the exception, and the third parameter is
  an array of callback information. Exceptions are caught by the
  +rescue+ clause of +begin...end+ blocks.

 raise Failed to create socket
 raise ArgumentError, No parameters, caller

 which menas you could do as you describe - add brackets round it all.

 To submit a patch, open a jira ticket and do a diff of what you have
 compared to the current svn
 Im sure how to do that is described on the wiki or in this list

 Paul



 On Mon, Dec 1, 2008 at 12:55 PM, Chuck vdL [EMAIL PROTECTED] wrote:

 
 OK the putting that in 'brackets'  (sorry still think of those as
 parenthesis, and [] as brackets..)  eliminated that error and got me a
 new one..  (heh  isn't this fun)
   
 Now the problem is on line 1078 column 39 of firefox.rbanother
 unexpected token, this time a comma..
   
 So I went and looked, here's the code in that area
   
 --=-=-=-=- snip -=-=-=-=
   # 5/16/08 Derek Berner
# Wrapper method to send JS commands concisely,
# and propagate errors
def js_eval(str)
  #puts JS Eval: #{str}
  $jssh_socket.send(#{str};\n,0)
  value = read_socket()
  if md=/^(\w+)Error:(.*)$/.match(value)
eval class JS#{md[1]}Error\nend
raise (eval JS#{md[1]}Error), md[2]
  end
  #puts Value: #{value}
  value
end
 --=-=-=-=-=- snip -=-=-=-
   
 The problem is on the 'raise' line, it doesn't like the comma after
 the closing backet, before  md[2]   any ideas?  do I need to wrap
 everything after 'raise' in another set of brackets?so it reads
 like
   
raise ((eval JS#{md[1]}Error), md[2])
   
 ??
   
  (and if these things get stuff working, do I need to raise a jira
 issue 

[wtr-general] Re: FireWatir: Link click error

2008-12-02 Thread Bret Pettichord

1. Your stack trace indicates that you are using FireWatir 1.2.0, not 1.6.1
2. Your stack trace error is inconsistent with the code you provide. 
Please double check the actual code on line 25 of Accounts.rb

Bret

Girish Jindal wrote:
 Hello,

 I am facing an issue using  FireWatir. FireWatir is not able to click 
 the link: *ff.link(:text, Sign Out).click*. I am using Watir 1.6.1

 It is throwing exception
   1) Error:
 test_AccountOverview(Accounts):
 FireWatir::Exception::UnknownObjectException: Unable to locate object, 
 using url and http://aaa3/client/AcctOverview.aspx
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:866:in 
 `assert_exists'
 
 C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.2.0/./MozillaBaseElement.rb:1019:in
  
 `click'
 C:/WS/OLB/test-Multi/Accounts.rb:25:in `test_AccountOverview'


 Does anyone know why I am getting this error? How can I fixed?

 Thank you very much!
 Regards
 Girish

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firefox on mac not quitting

2008-12-02 Thread Bret Pettichord

Short answer: no.

Dave Hoover says this is browser.quit in SafariWatir. Similar is 
IE.close_all. We need to figure out what to do to be consistent.

Regardless, this problem should not be causing your scripts not to 
return. Can you provide more information? Something else may be happening.

Bret


Matthias Marschall wrote:
 Hi,

 I'm using firewatir 1.6.2 on Mac OS 10.5.5 with firefox 3.0.4.

 browser = Watir::Browser.new

 opens firefox as expected.

 browser.close

 closes the window opened before, but does not quit firefox.

 Is there any way to make firewatir quit firefox? Currently, my watir
 scripts never return as they seem to be waiting on firefox to exit.
 Manually quitting firefox works but is a bad workaround.

 Any ideas?

 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] tip of the day: puts does an implicit to_s

2008-12-02 Thread Bret Pettichord

In three separate threads recently, people have been confused because 
what they see with puts doesn't match with what they are testing in an 
if statement

e.g.

puts foo
hello

but

if foo == hello
  this_is_never_called
end


The problem stems from the fact that puts is actually

print(foo.to_s + \n)


Now you know.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Updating RubyForge info for Watir?

2008-12-02 Thread Bret Pettichord

Info has been updated to say Watir supports IE and Firefox.

News for 1.6.2 were accidently called 1.6.1 and as far as i know this 
can't be edited.

Beta? I dunno. What do you suggest we call it?

Bret

Chuck vdL wrote:
 Is this on the todo list?

 I was just there and noticed that  the info still indicates it's
 windows only, ie only, there's no release notice for 1.6.2 under
 'latest news,  and is the development status still actually considered
 to be 'beta' ?
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-12-02 Thread Bret Pettichord

The reason that enabled popup is in contrib is to indicate that it is 
unsupported code.

I've never used Watir's modal dialog support for production testing 
(except for showModalDialogs, which i've used and which IMHO has 
excellent support). The support for the other modal dialogs needs work 
simply for IE much less working on how to make this work cross-platform. 
Some of this code is not in contrib, although it probably should be.

I've always found it easier to avoid dealing with modal dialogs, so I've 
never had personal motivation to work on this code.

I've considered removing the nascent support for modal dialogs from 
Watir entirely (perhaps bundling as a separate gem), to help telegraph 
that this code is not being maintained or supported. Perhaps this would 
help this code find a new owner.

Bret

Lisa Crispin wrote:
 Hi Bret,
 Just to clarify - So for now we have to use require 'watir\ie' in 
 order to require 'watir\contrib\enabled_popup', but in the next 
 version, we won't have to use require 'watir\ie', correct?

 My next question may be ignorant - if we want to be able to run our 
 scripts in firewatir as well as watir, does that mean we can't use 
 this enabled_popup thing to deal with modal dialogs? In that case, how 
 DO we deal with modal dialogs?
 thanks,
 Lisa

 On Thu, Nov 13, 2008 at 11:06 AM, Bret Pettichord [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:


 i've added the require statement to the enabled popup script
 itself, so
 this workaround will not be required with the next version of watir

 jpweston wrote:
  Thanks for this and your explanation in the Uninitialzied Constant
  post.
 
  j.
 
  On Nov 12, 9:17 pm, Bret Pettichord [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
  the solution is to add require 'watir/ie' to your script
 
  jpweston wrote:
 
  After installing WATIR 1.6.2, scripts that have the following
 line:
  require 'watir/contrib/enabled_popup' are causing the
 following error:
 
  c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
  enabled_popup.rb:5: uninitialized constant
 Watir::PageContainer::Win32
  (NameError)
 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'
 
  Here is what I have at the top of my scripts:
 
  require 'test/unit'
  require 'ci/reporter/rake/test_unit_loader.rb'
  require 'watir'
  require 'watir/testcase'
  require 'watir/contrib/enabled_popup'
 
  class TC_sales_tests  Watir::TestCase
 
include Watir
 
  code
 
  end
 
  Can someone point me toward what I am doing wrong here?  These
 scripts
  worked with the version of 1.5 that I had installed.
 
  Thanks.
 
  Johnathan
 
  
 








 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: firefox on mac not quitting

2008-12-03 Thread Bret Pettichord

Matthias,

Thanks for the details. Would you mind logging this -- and Richard's 
workaround -- in Jira so that we can be sure to get it fixed?

Bret

Matthias Marschall wrote:
 Hi Bret,

 thanks for investigating. Here are some scenarios on my box using irb:

 A) firefox already running

 irb(main):001:0 require 'rubygems'
 = true
 irb(main):002:0 require 'firewatir'
 = true
 irb(main):003:0 b = Watir::Browser.new
 TypeError: exception class/object expected
   from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 firefox.rb:1078:in `raise'
   from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 firefox.rb:1078:in `js_eval'
   from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 firefox.rb:195:in `get_window_number'
   from /usr/local/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/
 firefox.rb:162:in `initialize'
   from /usr/local/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/
 browser.rb:65:in `new'
   from /usr/local/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/
 browser.rb:65:in `new'
   from (irb):3

 firefox shows a popup box telling me that only one instance of firefox
 can run simultaneously. Ok, no problem.

 B) firefox _not_ running

 irb(main):004:0 b = Watir::Browser.new
 = #FireWatir::Firefox:0x1a39c50 @window_title=, @error_checkers=
 [], @window_url=about:blank, @t=#Thread:0x1a39b38 sleep
 irb(main):005:0 b.close

 The Browser.new call opens firefox as expected.
 The b.close call closes the newly opened firefox window but never
 returns on its own.
 If I close ff now manually, the b.close call returns showing:

 = #Thread:0x1a39b38 dead

 Hope this helps! Any ideas are appreciated!

 Matthias

 On 2 Dez., 17:27, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 Short answer: no.

 Dave Hoover says this is browser.quit in SafariWatir. Similar is
 IE.close_all. We need to figure out what to do to be consistent.

 Regardless, this problem should not be causing your scripts not to
 return. Can you provide more information? Something else may be happening.

 Bret

 Matthias Marschall wrote:
 
 Hi,
   
 I'm using firewatir 1.6.2 on Mac OS 10.5.5 with firefox 3.0.4.
   
 browser = Watir::Browser.new
   
 opens firefox as expected.
   
 browser.close
   
 closes the window opened before, but does not quit firefox.
   
 Is there any way to make firewatir quit firefox? Currently, my watir
 scripts never return as they seem to be waiting on firefox to exit.
 Manually quitting firefox works but is a bad workaround.
   
 Any ideas?
   

 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Getting error at installing 1.6.1

2008-12-03 Thread Bret Pettichord

Yes, please go ahead and update the install instructions.

Bret

Chuck vdL wrote:
 FYI:   got this same builder doc error when I tried to install just
 now..

 Do we need to update the install instructions in the tutorial and such
 to reflect that users might expect to see this error, and what (if
 anything) they need to do about it?

 Perhaps also update the 'Output should be something like this:
 example to reflect what users currently see when they do the install
 (sample below)

 =-=-=- My experience =-=-=

 Environment is a CLEAN (as in pristine, fresh) windows 2003 server
 system (it's a VM but I doubt that matters).   Never had Ruby or Watir
 on it.

  Installed Ruby 186-27-RC2 without issues  (yeah living on the 'edge'
 with the RC {smirk})

 Rest of the install looked like this (yes I'm an admin on the box)

 C:\Documents and Settings\Chuckvgem update --system
 Updating RubyGems
 Nothing to update

 C:\Documents and Settings\Chuckvgem install watir
 Successfully installed activesupport-2.2.2
 Successfully installed xml-simple-1.0.11
 Successfully installed rubyforge-1.0.1
 Successfully installed rake-0.8.3
 Successfully installed hoe-1.8.2
 Successfully installed s4t-utils-1.0.4
 Successfully installed builder-2.1.2
 Successfully installed user-choices-1.1.6
 Successfully installed commonwatir-1.6.2
 Successfully installed firewatir-1.6.2
 Successfully installed watir-1.6.2
 11 gems installed
 Installing ri documentation for activesupport-2.2.2...
 Installing ri documentation for rubyforge-1.0.1...
 Installing ri documentation for rake-0.8.3...
 Installing ri documentation for hoe-1.8.2...
 Installing ri documentation for s4t-utils-1.0.4...
 Installing ri documentation for builder-2.1.2...
 ERROR:  While generating documentation for builder-2.1.2
 ... MESSAGE:   Unhandled special: Special: type=17, text=!-- HI --
 ... 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 user-choices-1.1.6...
 Installing ri documentation for commonwatir-1.6.2...
 Installing ri documentation for firewatir-1.6.2...
 Installing ri documentation for watir-1.6.2...
 Installing RDoc documentation for activesupport-2.2.2...
 Installing RDoc documentation for rubyforge-1.0.1...
 Installing RDoc documentation for rake-0.8.3...
 Installing RDoc documentation for hoe-1.8.2...
 Installing RDoc documentation for s4t-utils-1.0.4...
 Installing RDoc documentation for builder-2.1.2...
 Installing RDoc documentation for user-choices-1.1.6...
 Installing RDoc documentation for commonwatir-1.6.2...
 Installing RDoc documentation for firewatir-1.6.2...
 Installing RDoc documentation for watir-1.6.2...

 C:\Documents and Settings\Chuckv

 On Nov 11, 1:32 pm, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 Lisa Crispin wrote:
 
 If you are monkey-patching and want to use firefox, what do you do
 instead of
 require 'watir/ie' - do you say require 'watir/firefox'?  We tried
 that and it didn't work.
   
 use 'require firewatir' as before.



 
 Maybe our assumption is bad - we assumed that since the new version
 can use firefox, we can run watir on the mac?
   
 If you use the environment variable to set the browser version, and
 use Watir::Browser.new instead, do you need require 'watir/ie' at all?
   
 No.
 
 I'm just trying to get pointed down the right road. require 'watir/ie'
 is working when we run our scripts on windows. But we want more
 flexibility.
 thanks,
 Lisa- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: 1.6.2: Issue with enabled_popup.rb

2008-12-03 Thread Bret Pettichord

I'm saying that I do not have a plan on how to support modal dialog 
testing that will work with both IE and Firefox, and as far as I know, 
no one else is working on this.

Bret

Lisa Crispin wrote:
 As someone whose programming skills are limited, and who primarily 
 works as a tester, it's hard for me to understand what you're saying.

 We've been running a big Watir suite for a few years now and it has 
 handled our modal dialogs fairly well up to now. That took a bit of 
 doing but we got it stable.

 I don't know what showModalDialogs is so I need to go look that up - 
 would that solve our problem of being able to close the modal dialogs?

 Or are you saying modal dialogs aren't really supported? If that is 
 true, are these our only choices:
 1. Go back to the previous version of Watir and stay there forever, or 
 until modal dialog support is provided (which sounds chancy as 
 apparently we're the only ones using modal dialogs a lot?)
 2. Dump Watir and look for another tool - we have a huge investment in 
 our scripts and depend on them and I really don't want to do that.

 Am I overreacting - I just don't quite understand what you're saying.

 Thanks,
 Lisa

 On Tue, Dec 2, 2008 at 6:23 PM, Bret Pettichord [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:


 The reason that enabled popup is in contrib is to indicate that
 it is
 unsupported code.

 I've never used Watir's modal dialog support for production testing
 (except for showModalDialogs, which i've used and which IMHO has
 excellent support). The support for the other modal dialogs needs work
 simply for IE much less working on how to make this work
 cross-platform.
 Some of this code is not in contrib, although it probably should be.

 I've always found it easier to avoid dealing with modal dialogs,
 so I've
 never had personal motivation to work on this code.

 I've considered removing the nascent support for modal dialogs from
 Watir entirely (perhaps bundling as a separate gem), to help telegraph
 that this code is not being maintained or supported. Perhaps this
 would
 help this code find a new owner.

 Bret

 Lisa Crispin wrote:
  Hi Bret,
  Just to clarify - So for now we have to use require 'watir\ie' in
  order to require 'watir\contrib\enabled_popup', but in the next
  version, we won't have to use require 'watir\ie', correct?
 
  My next question may be ignorant - if we want to be able to run our
  scripts in firewatir as well as watir, does that mean we can't use
  this enabled_popup thing to deal with modal dialogs? In that
 case, how
  DO we deal with modal dialogs?
  thanks,
  Lisa
 
  On Thu, Nov 13, 2008 at 11:06 AM, Bret Pettichord
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
 
  i've added the require statement to the enabled popup script
  itself, so
  this workaround will not be required with the next version
 of watir
 
  jpweston wrote:
   Thanks for this and your explanation in the Uninitialzied
 Constant
   post.
  
   j.
  
   On Nov 12, 9:17 pm, Bret Pettichord [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:
  
   the solution is to add require 'watir/ie' to your script
  
   jpweston wrote:
  
   After installing WATIR 1.6.2, scripts that have the
 following
  line:
   require 'watir/contrib/enabled_popup' are causing the
  following error:
  
  
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/contrib/
   enabled_popup.rb:5: uninitialized constant
  Watir::PageContainer::Win32
   (NameError)
  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'
  
   Here is what I have at the top of my scripts:
  
   require 'test/unit'
   require 'ci/reporter/rake/test_unit_loader.rb'
   require 'watir'
   require 'watir/testcase'
   require 'watir/contrib/enabled_popup'
  
   class TC_sales_tests  Watir::TestCase
  
 include Watir
  
   code
  
   end
  
   Can someone point me toward what I am doing wrong here?
  These
  scripts
   worked with the version of 1.5 that I had installed.
  
   Thanks.
  
   Johnathan
  
   
  
 
 
 
 
 
 
 
 
  






 -- 
 Lisa Crispin
 Co-author with Janet

[wtr-general] Re: browser.attach

2008-12-04 Thread Bret Pettichord

Where do you see that it is not supported?

aidy lewis wrote:
 Hi,

 On the wiki I am informed that the browser.attach method is not
 supported in 1.6.2

 What alternative method can I use to hook onto an existing browser?

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: browser.attach

2008-12-05 Thread Bret Pettichord

Watir::Browser.attach is not supported/included in 1.6.2. (although it 
mostly works in trunk)

Watir::IE.attach continues to work as ever.

Bret

aidy lewis wrote:
 Hi Bret,

 2008/12/4 Bret Pettichord [EMAIL PROTECTED]:
   
 Where do you see that it is not supported?

 

 http://wiki.seleniumhq.org/display/WTR/Browser.new

 Compatibility
 Watir 1.6.2 does not support Browser.attach. This will be supported in
 a future version

 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Watir Ruby in Steel

2008-12-05 Thread Bret Pettichord

No. I know we also use some win32 libraries.

Anyone know of a tool that will give a diffinitive answer to this question?

Bret

Chuck vdL wrote:
 Hmm  something else just occured to me, when I installed Watir it
 pulled down a bunch of gems with it.  I wonder if I need to use their
 librarian utlitity to add ALL the ruby code in all of these gems to
 the library?

 If so, would this list be complete?

 activesupport-2.2.2
 xml-simple-1.0.11
 rubyforge-1.0.1
 rake-0.8.3
 hoe-1.8.2
 s4t-utils-1.0.4
 builder-2.1.2
 user-choices-1.1.6
 commonwatir-1.6.2
 firewatir-1.6.2
 watir-1.6.2



 On Dec 1, 2:15 pm, Chuck vdL [EMAIL PROTECTED] wrote:
   
 OK  posted a message in the forums over at SapphireSteel  regarding my
 experience so far.

 here's a link http://sapphiresteel.com/forum/index.php?topic=303.0
 for any that are interested to follow along.

 All in all I think if it will work, RubyInSteel could be a kick-ass
 IDE for working with Ruby and Watir both.  I'm rather hoping that it's
 something simple I've not done right and not a bug, but we will have
 to see how the Sapphire people respond.

 On Dec 1, 12:58 pm, Chuck vdL [EMAIL PROTECTED] wrote:



 
 On Dec 1, 12:14 pm, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 Please do note that all of the examples you've found so far represent
 correct Ruby code. In many cases with Ruby, parentheses are optional.
 
 It might be best if you reported your findings to the Ruby in Steel
 people so that they can fix their parser.
 
 ++
   
 headed over there right now, to do just that.- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: watir help: click_no_wait doesn't actually click

2008-12-08 Thread Bret Pettichord

Larry,

We've had multiple reports of this problem with click_no_wait, but I 
have not been able to reproduce them.

Bret

[EMAIL PROTECTED] wrote:
 Hey all -

 I'm trying to dismiss popups as described at
 http://wiki.seleniumhq.org/display/WTR/JavaScript+Pop+Ups, solution
 #5.  The first problem was that watir/contrib/enabled_popup was
 unhappy, but that was fixed by requiring watir/ie (per another post
 from this group, 
 http://groups.google.com/group/watir-general/browse_thread/thread/f3d3d8f6023890cb/016c62b5a5ff6fb6?pli=1).
 Now, though, it gets to the click_no_wait line and apparently does
 nothing.  Or, not quite nothing: when Ruby selects anything, a link or
 a field or a button or a whatever, it highlights it yellow, and I can
 see that it's selecting the correct button.  It just doesn't click it.

 In other words, if I use BROWSER.button(:id,
 Btndelete).click_no_wait nothing happens except the button turns
 yellow for a split-second; if I use BROWSER.button(:id,
 Btndelete).click it actually clicks (but then, of course, the popup
 code never executes).  I've got Ruby 1.8 and Watir 1.6.2.  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: watir help: click_no_wait doesn't actually click

2008-12-09 Thread Bret Pettichord

Is this true for the others seeing this problem as well?

I've tested this on Vista and haven't seen it, so I know there is more 
to it, but I could believe that it is something Vista specific.

Bret

Divya wrote:
 It happens only on Vista

 On Dec 9, 2:10 am, Bret Pettichord [EMAIL PROTECTED] wrote:
   
 Larry,

 We've had multiple reports of this problem with click_no_wait, but I
 have not been able to reproduce them.

 Bret

 [EMAIL PROTECTED] wrote:
 
 Hey all -
   
 I'm trying to dismiss popups as described at
 http://wiki.seleniumhq.org/display/WTR/JavaScript+Pop+Ups, solution
 #5.  The first problem was that watir/contrib/enabled_popup was
 unhappy, but that was fixed by requiring watir/ie (per another post
 from this 
 group,http://groups.google.com/group/watir-general/browse_thread/thread/f3d...).
 Now, though, it gets to the click_no_wait line and apparently does
 nothing.  Or, not quite nothing: when Ruby selects anything, a link or
 a field or a button or a whatever, it highlights it yellow, and I can
 see that it's selecting the correct button.  It just doesn't click it.
   
 In other words, if I use BROWSER.button(:id,
 Btndelete).click_no_wait nothing happens except the button turns
 yellow for a split-second; if I use BROWSER.button(:id,
 Btndelete).click it actually clicks (but then, of course, the popup
 code never executes).  I've got Ruby 1.8 and Watir 1.6.2.  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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Please Explain core_tests.rb

2008-12-10 Thread Bret Pettichord

Please do not that although you can't run these tests from the gem, you 
*can* run them if you pull the development source.

A great way to learn what this code does is to run it and then start 
changing lines and see what happens. I do it all the time.

Bret

Mark Anderson wrote:
 This seemed like an interesting challenge.  I've tried to provide
 links to reference materials on the commands.  I have a ruby-doc.org
 in my browser's bookmark bar because I visit it often.  Please ask
 more specific questions if any of the following does not make sense.

   /\/\ark

 # these are the non-xpath tests that do not need to be visible

 # This sets the global constant $HIDE_IE to true
 $HIDE_IE = true

 # This sets the constant TOPDIR to refer to the parent directory 
 # of the one where the file lives
 #  I couldn't find rdoc or a pickaxe reference for __FILE__, but
 #  here is a nice blog post:
 #   http://neeraj.name/blog/articles/228-__file__-in-ruby
 #  File.join and File.dirname documented at: 
 #   http://www.ruby-doc.org/core/classes/File.html
 TOPDIR = File.join(File.dirname(__FILE__), '..')

 # This prepends TOPDIR to the beginning of the $LOAD_PATH array
 #  (http://www.ruby-doc.org/core/classes/Array.html#M002194)
 $LOAD_PATH.unshift TOPDIR

 # Documentation for require:
 #   http://www.ruby-doc.org/core/classes/Kernel.html#M005967
 require 'unittests/setup'

 # Changes the current working directory of the process to TOPDIR
 #  (http://www.ruby-doc.org/core/classes/Dir.html#M002339)
 Dir.chdir TOPDIR

 # $all_tests is an array that is constructed when we require'd
 # unittests/setup above.  It contains strings that describe 
 # filenames.  We want to require each of those files.
 #  (Docs for each:
 #http://www.ruby-doc.org/core/classes/Array.html#M002196)
 $all_tests.each {|x| require x}

 # I found the source code for Watir::UnitTest here:
 #
 http://svn.openqa.org/fisheye/browse/watir/trunk/commonwatir/unittests/setup
 /watir-unittest.rb?r=trunk
 # I know that this code is being used to filter out some test
 # cases, specifically ones that match a case-insensitive regex,
 # but I'm not completely clear on how it works.
 Watir::UnitTest.filter_out do |test|
   test.class.to_s =~ /xpath/i
 end

 # This uses the same code to filter out tests that are
 # tagged with :must_be_visible, which makes sense since 
 # we appear to be running IE hidden.
 Watir::UnitTest.filter_out_tests_tagged :must_be_visible

   
 -Original Message-
 From: watir-general@googlegroups.com [mailto:watir-
 [EMAIL PROTECTED] On Behalf Of Vivek P.Netha
 Sent: Tuesday, December 09, 2008 11:36 AM
 To: Watir General
 Subject: [wtr-general] Please Explain core_tests.rb


 Hello,

 my Watir fanatic brethren...

 I have been an avid Watir user for more than two years now.
 But I've mostly been helping with small web applications,
 with consequently small test bases, on and off.

 I have a basic question to ask of you experts out there.

 I'd like someone to explain to me, each line, each method that is used
 in the core_tests.rb file.
 I realize it doesn't work anymore after FireWatir integration. But it
 seems like a good way to run
 Watir scripts when you have a whole suite of them with you.

 I mean, I know $HIDE_IE does. I think though that that is the extent
 of it.
 I'm not really sure what .join does or .unshift does or generally how
 the whole script is intended to work together.

 Any comments are duly appreciated.


 Thanks,
 Vivek.

 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 3678 (20081209) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com


 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 3679 (20081209) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com

 
  

 __ Information from ESET NOD32 Antivirus, version of virus signature
 database 3682 (20081210) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Please Explain core_tests.rb

2008-12-10 Thread Bret Pettichord

Er, Please do NOTE that ...

Bret Pettichord wrote:
 Please do not that although you can't run these tests from the gem, 
 you *can* run them if you pull the development source.

 A great way to learn what this code does is to run it and then start 
 changing lines and see what happens. I do it all the time.

 Bret

 Mark Anderson wrote:
 This seemed like an interesting challenge.  I've tried to provide
 links to reference materials on the commands.  I have a ruby-doc.org
 in my browser's bookmark bar because I visit it often.  Please ask
 more specific questions if any of the following does not make sense.

 /\/\ark

 # these are the non-xpath tests that do not need to be visible

 # This sets the global constant $HIDE_IE to true
 $HIDE_IE = true

 # This sets the constant TOPDIR to refer to the parent directory # of 
 the one where the file lives
 #  I couldn't find rdoc or a pickaxe reference for __FILE__, but
 #  here is a nice blog post:
 #   http://neeraj.name/blog/articles/228-__file__-in-ruby
 #  File.join and File.dirname documented at: #   
 http://www.ruby-doc.org/core/classes/File.html
 TOPDIR = File.join(File.dirname(__FILE__), '..')

 # This prepends TOPDIR to the beginning of the $LOAD_PATH array
 #  (http://www.ruby-doc.org/core/classes/Array.html#M002194)
 $LOAD_PATH.unshift TOPDIR

 # Documentation for require:
 #   http://www.ruby-doc.org/core/classes/Kernel.html#M005967
 require 'unittests/setup'

 # Changes the current working directory of the process to TOPDIR
 #  (http://www.ruby-doc.org/core/classes/Dir.html#M002339)
 Dir.chdir TOPDIR

 # $all_tests is an array that is constructed when we require'd
 # unittests/setup above.  It contains strings that describe # 
 filenames.  We want to require each of those files.
 #  (Docs for each:
 #http://www.ruby-doc.org/core/classes/Array.html#M002196)
 $all_tests.each {|x| require x}

 # I found the source code for Watir::UnitTest here:
 #
 http://svn.openqa.org/fisheye/browse/watir/trunk/commonwatir/unittests/setup 

 /watir-unittest.rb?r=trunk
 # I know that this code is being used to filter out some test
 # cases, specifically ones that match a case-insensitive regex,
 # but I'm not completely clear on how it works.
 Watir::UnitTest.filter_out do |test|
   test.class.to_s =~ /xpath/i
 end

 # This uses the same code to filter out tests that are
 # tagged with :must_be_visible, which makes sense since # we appear 
 to be running IE hidden.
 Watir::UnitTest.filter_out_tests_tagged :must_be_visible

  
 -Original Message-
 From: watir-general@googlegroups.com [mailto:watir-
 [EMAIL PROTECTED] On Behalf Of Vivek P.Netha
 Sent: Tuesday, December 09, 2008 11:36 AM
 To: Watir General
 Subject: [wtr-general] Please Explain core_tests.rb


 Hello,

 my Watir fanatic brethren...

 I have been an avid Watir user for more than two years now.
 But I've mostly been helping with small web applications,
 with consequently small test bases, on and off.

 I have a basic question to ask of you experts out there.

 I'd like someone to explain to me, each line, each method that is used
 in the core_tests.rb file.
 I realize it doesn't work anymore after FireWatir integration. But it
 seems like a good way to run
 Watir scripts when you have a whole suite of them with you.

 I mean, I know $HIDE_IE does. I think though that that is the extent
 of it.
 I'm not really sure what .join does or .unshift does or generally how
 the whole script is intended to work together.

 Any comments are duly appreciated.


 Thanks,
 Vivek.

 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 3678 (20081209) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com


 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 3679 (20081209) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com

 
  

 __ Information from ESET NOD32 Antivirus, version of virus 
 signature
 database 3682 (20081210) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: NoMethodError: undefined method `links' for nil:NilClass

2008-12-10 Thread Bret Pettichord

Upgrading to 1.6.2 for most people should be a zero-effort upgrade.

Upgrading to use Browser.new and make your tests also work with 
FireWatir -- now that may take some effort. (This is what i think you 
are doing.)

A full stack trace would help.

Bret


[EMAIL PROTECTED] wrote:
 Howdy,

 I am trying to evaluate how much effort is involved in migrating our
 watir code to 1.6.2.  Currently I am concluding that it is going to be
 a lot of work.

 I use this code fragment often.

   assert(@ie.link(:text, Sports).exists?)

 Has the 'link' method been deprecated or changed?  I am getting this
 error:

 NoMethodError: undefined method `links' for nil:NilClass

 Please let me know if you need the context of this basic script.  I
 basically go to msn.com and test for the sports link.

 Thanks,

 Carl
 
   


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Bret Pettichord

I claim that it works the way you'd expect. To test this claim, tell me 
how you'd expect it to work.

Bret


Chuck vdL wrote:
 The set option is a nice way to be able to run the very same script
 against both browsers without having to edit the script itself.   e.g.
 run in one system set for IE, and it uses IE, run it on another system
 set for firefox, and it uses firefox..

 but speaking of that, if both are used, which takes precidence?   If
 you try to use (or accidentially end up using) both the environment
 variable and the inscript .default= at the same time, which one wins?
 (or do we file that under 'bad ideas' along with crossing the streams
 or sneaking up on a piersons puppeteer from behind and suprising
 them)?

 On Dec 10, 9:55 pm, Margam [EMAIL PROTECTED] wrote:
   
 Thanks for the reply and explanation.

 The
 Watir::Browser.default = 'ie'
 and
 Watir::Browser.default = 'firefox'
 lines in my Ruby script worked fine.
 Will try the set lines also.

 On Dec 10, 7:40 pm, marekj [EMAIL PROTECTED] wrote:



 
 set watir_browser=ie lines are 'environment variables' you would set at the
 command line and not in your ruby script.
 On the spage page on the wiki it shows you how to set the browser in Ruby
 code.
 Watir::Browser.default = 'ie'
 or
 Watir::Browser.default = 'firefox'
 keep expermimenting.
   
 marekj | Semantic Page Objects Automation
   
 Watirloo: Browser Page Helper 
 Frameworkhttp://www.bitbucket.org/marekj/watirloo/
 for IE, Firefox and others?
   
 On Wed, Dec 10, 2008 at 6:45 PM, Margam [EMAIL PROTECTED] wrote:
   
 HI All,
 I am trying to write one script that will work on both IE and FF. As
 per the link:
 http://wiki.openqa.org/display/WTR/Browser.new
 
 I am trying to use the set watir_browser=ie command and
 Watir::Browser.new
 
 The code is :
 --
 require 'rubygems'
 require 'watir'
 
 set watir_browser=ie
 browser = Watir::Browser.new
 browser.goto(http://www.hotmail.com;)
 --
 
 But keep getting the following error:
 -
  undefined method `set' for main:Object (NoMethodError)
 -
 What am I doing wrong? Should I require any other library?
 
 Thank you.
 Margam- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: set watir_browser=ie is not working

2008-12-11 Thread Bret Pettichord

Margam,

I cannot reproduce your problem as described.

C:\set watir_browser=firefox

C:\irb
irb(main):001:0 require 'watir'
= true
irb(main):002:0 b = Watir::Browser.new
= #FireWatir::Firefox:0x3d32c48 @window_url=about:blank,
@t=#Thread:0x3d0c7
8c sleep, @window_title=, @error_checkers=[]
irb(main):003:0

Bret


Margam wrote:
 Hi John,
 So I tried using require 'watir/browser'  in my script and set
 watir_browser=ie from command prompt and everything is OK. IE is
 opened and the scripts runs fine.
 But when I type set watir_browser=firefox from command prompt and
 run the script, IE is still used. Firefox is not launched.
 Am I doing something wrong.

 Also for the time being I am doing to just change the default browser
 from the script itself (which works fine).

 Thank you
 Margam


 On Dec 11, 9:46 am, John Fitisoff jfitis...@yahoo.com wrote:
   
 I think the problem is that you are requiring watir rather than 
 watir/browser. Something like this should work:

 require 'rubygems'
 require 'watir/browser'
 set watir_browser=ie
 browser = Watir::Browser.new
 browser.goto(http://www.hotmail.com;)

 --- On Wed, 12/10/08, Margam nk.mar...@gmail.com wrote:

 
 From: Margam nk.mar...@gmail.com
 Subject: [wtr-general] set watir_browser=ie is not working
 To: Watir General watir-general@googlegroups.com
 Date: Wednesday, December 10, 2008, 4:45 PM
 HI All,
 I am trying to write one script that will work on both IE
 and FF. As
 per the link:
 http://wiki.openqa.org/display/WTR/Browser.new
   
 I am trying to use the set watir_browser=ie
 command and
 Watir::Browser.new
   
 The code is :
 --
 require 'rubygems'
 require 'watir'
   
 set watir_browser=ie
 browser = Watir::Browser.new
 browser.goto(http://www.hotmail.com;)
 --
   
 But keep getting the following error:
 -
  undefined method `set' for main:Object (NoMethodError)
 -
 What am I doing wrong? Should I require any other library?
   
 Thank you.
 Margam
   
 
   


--~--~-~--~~~---~--~~
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: Need to access the first LI element within an UL element

2008-12-12 Thread Bret Pettichord

/Signed in as (.*)/.match(browser.ul(:id, 'ulInfoLinks').li(:index, 
1).text)[1]

Natasha wrote:
 Hi All,

 I want to access the value of the LI element, which is within an UL
 element.

 Following is the HTML structure:

 UL class=inline id=ulInfoLinks
   LI
  Signed in as STRONG username /STRONG
   /LI
  LI  /LI
 /UL

 Basically I want to retrieve the name of the user that is logged in.

 Thanks,
 Natasha


 
   


--~--~-~--~~~---~--~~
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 is the difference between undefined value and null valu

2008-12-13 Thread Bret Pettichord

Everybody, this post is spam. This post is about PHP and is being posted 
here simply as a way to increase traffic to the interview door site, not 
to help the Watir community. Could some one please block the poster from 
this list. He's done this more than once.

Bret

raj wrote:
 What is the difference between undefined value and null valu
 http://interviewdoor.com/questions-faqs/viewtopic.php?f=155t=1144


   


--~--~-~--~~~---~--~~
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: click image for given DIV ID

2008-12-13 Thread Bret Pettichord

No.

Shiv wrote:
 Bret

 Since we have customiztion on the 1.4 watir code, we not able to
 upgrade now. is there any tweak?

 Thanks
 Shiv
 On Dec 12, 7:20 am, Bret Pettichord b...@pettichord.com wrote:
   
 This is a bug in Watir 1.4. It is fixed in Watir 1.5 and Watir 1.6. Time
 to upgrade.

 Bret



 Shiv wrote:
 
 Hi,
   
  I want to click image for knownDIVID. Let say, I want to click
 image ofDIVIDf4
   
 My code is this and it doesn't work
   
 $ie.div(:id,divid).image(:src, /tag_add.png/).click
 Error: failed undefined local variable or method `document' for
 #Watir::Div:0x2c88898
   
 To elaborate more on the issue, Its html page with 20 rows and one
 them will be higlighted/selected any given time(DIVclass=file-
 titleSelected indicates it's a active/higlighted row). I want to
 click image belongs to this row.
   
 Note: I am using watri 1.4 and so I can't use multiple param support
   
 Thanks
 Shiv
   
 DIVclass=file-titleid=f1IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f2IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f3IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleSelectedid=f4IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f5IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f6IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV
 DIVclass=file-titleid=f7IMG src=https://k27/images/
 tag_add.png border=0 //A/DIV- 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: javascript for javascript boxes

2008-12-19 Thread Bret Pettichord

This approach would work. It's what Selenium does.

Bret

aidy lewis wrote:
 Hi,

 Why isn't Watir using Javascript to deal with confirm or alert boxes?

 Would it not be easier to pass something like this to the address bar:

 javascript:void(window.confirm=function(){return true;}); ?

 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: Is the FireWatir-Watir integration working for you?

2008-12-19 Thread Bret Pettichord

I did not realize that people were still posting bug reports to the 
firewatir project. We've been using Jira to track bugs with FireWatir 
since the summer.
http://jira.openqa.org/browse/WTR

Wilson, I read your report, but would appreciate more details. Can you 
give us an example of a page that gives different results with Watir and 
FireWatir? And would you mind moving your report to Jira, so that it is 
listed with the other FireWatir bugs.

Bret


Wilson Xu wrote:
 I have tested my existed suite on Firefox, found the returned content
 of firewatir method is difference from between firewatir and watir,
 please refer to the http://code.google.com/p/firewatir/issues/detail?id=80.
 This is the biggest issues.

 Wilson Xu

 On Dec 19, 6:17 am, Lisa Crispin lisa.cris...@gmail.com wrote:
   
 I just haven't had time to get it working. Actually I haven't even had time
 to get my whole suite of tests working again. They run individually, but
 fail in a suite - windows are not getting closed and the next test fails.
 The suite ran before fine although we had been having random failures we
 couldn't figure out. This is a big problem for us but we've been swamped. I
 am determined to figure it out this sprint and we added a story this sprint
 to be sure we have time.

 It is ultimately our goal to be able to use FireWatir since 100% of our team
 works on a Mac. A couple of us also have PCs.

 I am excited about the potential, though! I guess it's a movie I really,
 really want to see how it ends!
 -- Lisa

 On Thu, Dec 18, 2008 at 3:09 PM, Pete Dignan p...@watircraft.com wrote:

 
 I'm curious, now that 1.6.2 has been out for a little while.  Is the
 integration of FireWatir and Watir working for you?  Are you using it
 to test on both IE and Firefox? Are there issues that are preventing
 you from using it effectively? If 1.6.2 were a movie and you were a
 movie critic, how many stars would you give it?
   
 Pete
   
 --
 Lisa Crispin
 Co-author with Janet Gregory, _Agile Testing: A Practical Guide for Testers
 and Agile Teams_ (Addison-Wesley 
 2009)http://lisa.crispin.home.att.nethttp://lisacrispin.blogspot.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 help: click_no_wait doesn't actually click

2008-12-20 Thread Bret Pettichord

My best guess right now is that it is related to IE security settings. 
Vista, by default, has tighter security, so this might explain why we 
are seeing this problem mostly (but not always) on Vista.

Bret

matthew wrote:
 I'm not on Vista, I'm over on XP Pro, and seeing this issue as well.
 Driving me nuts, just glad to see someone else has the issue, because
 this has been driving me up the wall.

 On Dec 9, 7:55 am, Bret Pettichord b...@pettichord.com wrote:
   
 Is this true for the others seeing this problem as well?

 I've tested this on Vista and haven't seen it, so I know there is more
 to it, but I could believe that it is something Vista specific.

 Bret

 Divya wrote:
 
 It happens only on Vista
   
 On Dec 9, 2:10 am, Bret Pettichord b...@pettichord.com wrote:
   
 Larry,
 
 We've had multiple reports of this problem with click_no_wait, but I
 have not been able to reproduce them.
 
 Bret
 
 larryni...@gmail.com wrote:
 
 Hey all -
   
 I'm trying to dismiss popups as described at
 http://wiki.seleniumhq.org/display/WTR/JavaScript+Pop+Ups, solution
 #5.  The first problem was that watir/contrib/enabled_popup was
 unhappy, but that was fixed by requiring watir/ie (per another post
 from this 
 group,http://groups.google.com/group/watir-general/browse_thread/thread/f3d...).
 Now, though, it gets to the click_no_wait line and apparently does
 nothing.  Or, not quite nothing: when Ruby selects anything, a link or
 a field or a button or a whatever, it highlights it yellow, and I can
 see that it's selecting the correct button.  It just doesn't click it.
   
 In other words, if I use BROWSER.button(:id,
 Btndelete).click_no_wait nothing happens except the button turns
 yellow for a split-second; if I use BROWSER.button(:id,
 Btndelete).click it actually clicks (but then, of course, the popup
 code never executes).  I've got Ruby 1.8 and Watir 1.6.2.  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: attach method

2008-12-22 Thread Bret Pettichord

aidy lewis wrote:
 Hi,

 Can anyone tell me where the attach method now exists?

 Aidy
   

It is an instance method on Watir::IE and a class method on 
FireWatir::Firefox.

If you look in trunk, you'll see that there is also an instance method 
on FireWatir::Firefox.

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: Capturing data within an xml

2008-12-22 Thread Bret Pettichord

Have you considered using Mechanize instead of Watir? That's what I've 
used when I've had to test XML.

Bret

winstan wrote:
 Hello Again,

 After playing around with rexml with some of the URL’s provided in
 this thread and other sites I have found I have established that you
 are in fact correct and that rexml would be the way to go. However, I
 am still making requests and receiving responses to and from the WS
 via the UI, and as such I am in need of a little more help/advice with
 this.

 After making the request with specific attributes a response is served
 up from the WS and is opened in another IE window. I can attach to the
 new window with out a problem but from that point on I am unsure as to
 how to proceed with the use of rexml. Bellow is an example of some
 thing I tried but I assume because I am making the.

 it 'Attaching to the new window and confirming that there was a VALID
 response from the web server' do
   @b2 = Watir::IE.attach(:url, ‘http://privateurl.asmx/
 wsresponse')
   @b2.maximize
 xml = @b2.html
   doc = REXML::Document.new(xml)
   WID = REXML::XPath.first(doc.root, '//WID/text()')
   WID == (data['WIDTestField'])

 The reason I attempted “xml = @b2.html” is because when I view the
 source of the window that contains the response from the WS, it just
 shows the XML. Needless to say that didn’t work, and I didn’t really
 expect it to however I thought I would give it a shot. I then went to
 irb on the command line and had a look at what �...@b2.html” actually
 looked like. I was expecting to see the xml without formatting however
 there was a lot more to it than what the page source showed. This
 would explain the error message in my respec results.html:

 #REXML::ParseException: missing attribute quote
 Line:
 Position:
 Last 80 unconsumed characters:
 SPAN class=bnbsp;/SPAN SPAN class=mlt;//SPANSPAN
 class=tClient/SPAN
 c:/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:345:in `pull'
 c:/ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
 c:/ruby/lib/ruby/1.8/rexml/document.rb:204:in `build'
 c:/ruby/lib/ruby/1.8/rexml/document.rb:42:in `initialize'
 ./tests/WsRequestClientByWid_test.rb:36:in `new'
 ./tests/WsRequestClientByWid_test.rb:36
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
 example_methods.rb:81:in `instance_eval'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
 example_methods.rb:81:in `eval_block'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
 example_methods.rb:15:in `execute'
 c:/ruby/lib/ruby/1.8/timeout.rb:48:in `timeout'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
 example_methods.rb:12:in `execute'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
 example_group_methods.rb:245:in `execute_examples'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
 example_group_methods.rb:244:in `each'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
 example_group_methods.rb:244:in `execute_examples'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
 example_group_methods.rb:141:in `run'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/
 example_group_runner.rb:22:in `run'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/
 example_group_runner.rb:21:in `each'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/
 example_group_runner.rb:21:in `run'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:
 115:in `run_examples'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/
 command_line.rb:10:in `run'
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/bin/spec:4
 c:/ruby/bin/spec:16:in `load'
 c:/ruby/bin/spec:16
 ...
 missing attribute quote
 Line:
 Position:
 Last 80 unconsumed characters:
 SPAN class=bnbsp;/SPAN SPAN class=mlt;//SPANSPAN
 class=tClient/SPAN
 Line:
 Position:
 Last 80 unconsumed characters:
 SPAN class=bnbsp;/SPAN SPAN class=mlt;//SPANSPAN
 class=tClient/SPAN

 Basically I was wondering if any one could suggest a way of me being
 able to use rexml without having to save any files and just using the
 xml response on the second IE window that is opened as a result of the
 request.

 Thanks again guys. I really appreciate your guidance.


 On Dec 5, 3:37 am, Richard Lawrence rslawre...@gmail.com wrote:
   
 You really don't want to be reinventing XML parsing (badly) with
 string substitution or regular expressions. Given a string with your
 XML in it, theREXMLcode to get the values you want would look
 something like the following. You'll have to use something like
 Net::Http to actually make the web service call to get the XML string.
 There are some decent examples 
 here:http://rubylearning.com/blog/2008/04/25/yahoo-web-services-in-ruby/.

 As Alex recommended, play around in irb with this to get a feel for it.

 require 'rexml/document'

 xml = '?xml version=1.0
 ?parentfirstNameFoo/firstNamelastNameBar/lastName/parent'

 doc 

[wtr-general] Re: Sample Ruby Application

2008-12-22 Thread Bret Pettichord

aami...@gmail.com wrote:
 I am in search of a sample Ruby Based Web Application which can be
 used for testing using Watir tool. Can anyone helpme on this.
 Thanks in advance.
   
I've been using the Depot application from the Rails Book, for this purpose.
http://www.motherjones.com/kevin-drum/2008/12/twitter.html


The version of this app in the repository right now, isn't quite 
complete, but we're working on it.

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: Capturing data within an xml

2008-12-23 Thread Bret Pettichord

I was testing an rss feed and used Mechanize + Hpricot to do so. I got 
the url from the application using Watir and then passed it to Mechanize 
to get the page and then used Hpricot to validate it.

Bret

srinivas subramanian wrote:
 Hi,

 Its been quite some time, since i've started using Watir. Its awesome. 
 I've used Hpricot to test xmls. It worked out well for me. Please 
 refer: http://code.whytheluckystiff.net/hpricot/

 Thanks,
 Srinivas

 On Tue, Dec 23, 2008 at 5:25 AM, winstan 
 lucasdavidwinstan...@gmail.com 
 mailto:lucasdavidwinstan...@gmail.com wrote:


 Hi Bret,

 No i havent used Mechanize. Nor have i heard of it to be honest.
 Before i jump into it and start playing around with it, i would like
 to ask have you used it in the means in which im trying to access the
 xml defined above?

 Cheers

 On Dec 23, 3:08 am, Bret Pettichord b...@pettichord.com
 mailto:b...@pettichord.com wrote:
  Have you considered using Mechanize instead of Watir? That's
 what I've
  used when I've had to test XML.
 
  Bret
 
 
 
  winstan wrote:
   Hello Again,
 
   After playing around with rexml with some of the URL's provided in
   this thread and other sites I have found I have established
 that you
   are in fact correct and that rexml would be the way to go.
 However, I
   am still making requests and receiving responses to and from
 the WS
   via the UI, and as such I am in need of a little more
 help/advice with
   this.
 
   After making the request with specific attributes a response
 is served
   up from the WS and is opened in another IE window. I can
 attach to the
   new window with out a problem but from that point on I am
 unsure as to
   how to proceed with the use of rexml. Bellow is an example of some
   thing I tried but I assume because I am making the.
 
   it 'Attaching to the new window and confirming that there was
 a VALID
   response from the web server' do
 @b2 = Watir::IE.attach(:url, 'http://privateurl.asmx/
   wsresponse')
 @b2.maximize
   xml = @b2.html
 doc = REXML::Document.new(xml)
 WID = REXML::XPath.first(doc.root, '//WID/text()')
 WID == (data['WIDTestField'])
 
   The reason I attempted xml = @b2.html is because when I view the
   source of the window that contains the response from the WS,
 it just
   shows the XML. Needless to say that didn't work, and I didn't
 really
   expect it to however I thought I would give it a shot. I then
 went to
   irb on the command line and had a look at what @b2.html actually
   looked like. I was expecting to see the xml without formatting
 however
   there was a lot more to it than what the page source showed. This
   would explain the error message in my respec results.html:
 
   #REXML::ParseException: missing attribute quote
   Line:
   Position:
   Last 80 unconsumed characters:
   SPAN class=bnbsp;/SPAN SPAN class=mlt;//SPANSPAN
   class=tClient/SPAN
   c:/ruby/lib/ruby/1.8/rexml/parsers/baseparser.rb:345:in `pull'
   c:/ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:21:in `parse'
   c:/ruby/lib/ruby/1.8/rexml/document.rb:204:in `build'
   c:/ruby/lib/ruby/1.8/rexml/document.rb:42:in `initialize'
   ./tests/WsRequestClientByWid_test.rb:36:in `new'
   ./tests/WsRequestClientByWid_test.rb:36
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
   example_methods.rb:81:in `instance_eval'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
   example_methods.rb:81:in `eval_block'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
   example_methods.rb:15:in `execute'
   c:/ruby/lib/ruby/1.8/timeout.rb:48:in `timeout'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
   example_methods.rb:12:in `execute'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
   example_group_methods.rb:245:in `execute_examples'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
   example_group_methods.rb:244:in `each'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
   example_group_methods.rb:244:in `execute_examples'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/example/
   example_group_methods.rb:141:in `run'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/
   example_group_runner.rb:22:in `run'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/
   example_group_runner.rb:21:in `each'
   c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/
   example_group_runner.rb:21:in `run'
  
 c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:
   115

[wtr-general] Re: stupid install problem

2008-12-29 Thread Bret Pettichord

Normally when you install Ruby on Windows, sets the RUBYGEMS env var to 
rubygems -rubygems. My guess is that when you reinstalled, for some 
reason this did not happen. You can do this manually and it should fix 
your configuration.

Note to others: this solution can also work on Mac if you don't want to 
add require 'rubygems' to your scripts.

Bret

Lisa Crispin wrote:
 Hi all,
 My mac had a hard disk disaster, and only after that did I discover I 
 had had a time machine backup disaster earlier, so I didn't have a 
 backup from after I got watir working on my vmware windows xp on the mac.

 I reinstalled using the same steps I had done a few weeks back, but my 
 watir scripts don't work, I get an error that watir isn't found. When 
 I do irb and require 'watir', I get this:
 irb(main):001:0 require 'watir'
 LoadError: no such file to load -- watir
 from (irb):1:in `require'
 from (irb):1

 I see emails on this list saying you have to require 'rubygems' before 
 require 'watir', and that *does* work, however, I never did that before.

 Do I now have to go edit every Watir script I have and add require 
 'rubygems'? And is that going to work on a real PC? (I'm at home where 
 I don't have a PC right now).

 I've never had problems like this installing watir - I have the latest 
 of both Ruby and Watir
 ruby 1.8.6 patch level 287
 watir 1.6.2

 I installed per the instructions on http://wtr.rubyforge.org/install.html

 This stuff only happens to me when I'm at home and have no other 
 options! :-

 Thanks,
 Lisa

 Thanks,
 Lisa


 


--~--~-~--~~~---~--~~
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: The Urgent Issue For Ruby 1.8.6

2008-12-29 Thread Bret Pettichord

I think you need a newer version of Ruby 1.8.6. I recommend 1.8.6-26. 
What are you using?

Bret

bugs apple wrote:
 Hi, all
  
 In our 32 bit winXP, the Watir 1.5.6 and ruby 1.8.6 have installed. 
 Sometimes we have ran into the Ruby crash unexpectedly.
 it throws the following errors,
  
 (eval):4  [BUG] Segmentation fault
 ruby 1.8.6 (2007-09-24) [i386-mswin32]
  
 Somehow, it occured sometimes, anybody can provide the soluations for 
 this urgent issues?
  
 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: FireWatir Installation

2008-12-29 Thread Bret Pettichord

It is good that you are doing this.

Suggestions.

If target is Windows + Mac + Linux

1. gem install firewatir
2. check
3 - not necessary, remove
4 - not necessary, remove
5. check

Bret

aidy lewis wrote:
 Hi,

 Can anyone please have a quick look at this to see if it is accurate?

 http://github.com/aslakhellesoy/cucumber/wikis/setting-up-firewatir

 I am explicitly using the word FireWatir because:

 1. Many people still think Watir is just Windows and IE
 2. Many of the Rspec guys use Macs and\or GNU\Linux.

 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: Is the FireWatir-Watir integration working for you?

2008-12-29 Thread Bret Pettichord

This is the first I've heard of this problem. Could you please report 
this in Jira?
http://jira.openqa.org/browse/WTR

Bret

watirpuppy wrote:
 I've run into  a few issues too.
 I'm writing scripts that work in both IE and FireFox.  Using
 Watir::Browser.default =   and   Watir::Browser.new
 Pleny of success so far..

 HOWEVER,  the following works in IE but throws an
 UnknownObjectException in FireFox.
 # get the target userID
   userID = @@browser.cell(:xpath, //[contains(text(),'#
 {@@uName}')]/../td[1]).innerText

 Am using xpath calls in plenty of other places that work in both
 browsers - but for some reason this one fails in FireFox.

   


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

2008-12-29 Thread Bret Pettichord

Today the Watir gem only works on Windows. I have plans to eventually 
make it be cross-platform.

Bret

aidy lewis wrote:
 Hi Bret,

 2008/12/29 Bret Pettichord b...@pettichord.com:
   
 It is good that you are doing this.

 Suggestions.

 If target is Windows + Mac + Linux

 1. gem install firewatir
 

 I was thinking about this: can we still gem install watir on a Mac and
 GNU\Linux even though classic Watir may not run?

 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: Sample Ruby Application

2009-01-05 Thread Bret Pettichord

Yeah, that was the wrong link. Here's a link to the depot source code.
http://github.com/bret/framework-examples/tree/master/depot

Bret

Alister Scott wrote:
 I think the link to Depot that Bret posted was incorrect.
 You can find depot.zip on Bret's blog at 
 http://www.io.com/~wazmo/blog/archives/2007_07.html#000254

 Cheers,
 Alister

 On Dec 23 2008, 2:17 am, Bret Pettichord b...@pettichord.com wrote:
   
 aami...@gmail.com wrote:
 
 I am in search of a sample Ruby Based Web Application which can be
 used for testing using Watir tool. Can anyone helpme on this.
 Thanks in advance.
   
 I've been using the Depot application from the Rails Book, for this 
 purpose.http://www.motherjones.com/kevin-drum/2008/12/twitter.html

 The version of this app in the repository right now, isn't quite
 complete, but we're working on it.

 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: Is the FireWatir-Watir integration working for you?

2009-01-05 Thread Bret Pettichord

If you can get me a reproducible case, then I would like to see a Jira 
report.

Otherwise, you might just add a note to 
http://wiki.openqa.org/display/WTR/Firewatir+Compatibility

watirpuppy wrote:
 After breaking out the offending line

 userID = @@browser.cell(:xpath, //[contains(text(),'#{@@uName}')]/../
 td[1]).innerText

 to a much smaller script, it worked in both browsers.. (the original
 script has 482 lines)
 So, I think the UnknownObjectException may be evidence the browser
 object got stale in the firefox world.

 Still worth a Jira report?

 MichaelT


 
   


--~--~-~--~~~---~--~~
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 IE Memory Usage

2009-01-07 Thread Bret Pettichord

AR wrote:
 I tried another instance where
 I added the ie = Watir::IE.new and an ie.close to the function, but
 opening and closing IE for each url took up more memory.
   
Try Watir::IE.new_process instead. This will open (and then close) a 
process each time, and therefore should avoid the memory leak.


--~--~-~--~~~---~--~~
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: Application not loaded

2009-01-12 Thread Bret Pettichord

It sounds like you may have encounted a bug in goto that occurred with 
an old version of Watir. What version are you using?

Prince3105 wrote:
 Hi Experts,

 I use below code to log  the application, some time application hangs
 to load, that time test also gets hang and lets to fail.

 @ie1 = Watir::IE.new
 @ie1.goto $url
 @ie1.maximize

 @ie1.text_field(:name,txtUserName).set $userid
 @ie1.text_field(:name,txtPassword).set $password
 @ie1.button(:name,btnSubmit).click

 Just i want to alter my code like below

 @ie1 = Watir::IE.new
 @ie1.goto $url
 @ie1.maximize

 timer = 0

 while password field is not exist
   sleep 1
   timer+=1
 if timer == 20 then
Watir::IE.close_all()
 @ie1 = Watir::IE.new
 @ie1.goto $url
 @ie1.maximize
 end
 end


 but i cant achieve it , it hangs in the particular @ie1.goto $url line
 and wont move to the next line.

 please give me a solution.

 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: element_by_xpath return value

2009-01-12 Thread Bret Pettichord

Richard Lawrence wrote:
 Using FireWatir's element_by_xpath on my Mac, I get the expected type
 for the element. For example, on the Google home page:

 irb(main):008:0 b.element_by_xpath(//*...@name='btnG']).class
 submit
 = FireWatir::Button

 But with Watir (on Windows, of course), I always get an instance of
 WIN32OLE back. For the same example:

 irb(main):018:0 b.element_by_xpath(//*...@name='btnG']).class
 = WIN32OLE

 Is there a way I can get the Button object I expect from
 element_by_xpath with Watir?

   
b.button(:xpath, //*...@name='btnG'])

This actually wraps the call to element_by_xpath.

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: element_by_xpath return value

2009-01-12 Thread Bret Pettichord

I'm sure there's a way for Watir to do this just like FireWatir. It just 
hasn't been done yet, as far as i am aware.

Angrez is the author of both Watir's xpath support as well as FireWatir, 
so that is probably why xpath works better with FireWatir than WatirIE.

Angrez, do you have anything to add here?

Bret

Richard Lawrence wrote:
 But there's no way for Watir to infer the object type the way FireWatir does?

 Thanks,

 Richard

 On Mon, Jan 12, 2009 at 9:15 AM, Bret Pettichord b...@pettichord.com wrote:
   
 Richard Lawrence wrote:
 
 Using FireWatir's element_by_xpath on my Mac, I get the expected type
 for the element. For example, on the Google home page:

 irb(main):008:0 b.element_by_xpath(//*...@name='btnG']).class
 submit
 = FireWatir::Button

 But with Watir (on Windows, of course), I always get an instance of
 WIN32OLE back. For the same example:

 irb(main):018:0 b.element_by_xpath(//*...@name='btnG']).class
 = WIN32OLE

 Is there a way I can get the Button object I expect from
 element_by_xpath with Watir?


   
 b.button(:xpath, //*...@name='btnG'])

 This actually wraps the call to element_by_xpath.

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

2009-01-14 Thread Bret Pettichord

Turn off page caching?

Bissquitt wrote:
 I did find one answer a few pages back but they involved closing IE

 On Jan 13, 2:47 pm, Bissquitt bissqu...@gmail.com wrote:
   
 So im running a script that goes to MANY webpages and I noticed that
 each web page it goes to it still stores the information so that I can
 go back causing the IE process to take up slightly more memory each
 page it goes to. Is there a solution to this that doesn't require me
 to close the browser and reopen it each time?
 
 
   


--~--~-~--~~~---~--~~
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 Updating ruby version from 1.8.4 to 1.8.6 and watir gem version 1.5.1.1192 to 1.5.1.1230 , am getting error with require command

2009-01-15 Thread Bret Pettichord

1. somehow you did not actually install watir.
2. you should use watir 1.6.2. it is better.

bret

Rahil wrote:
 Hi Guys,

  Am using watir for quite some time with ruby version 1.8.4 and watir
 gem version 1.5.1.1192. Till now it was working fine for me with this
 version but just now i have upgraded my ruby to 1.8.6 and watir gem to
 1.5.1.1230 which also supports firefox. Now am done with my
 installation but when as i try to execute any of my watir test ,
 getting error  LoadError: no such file to load -- watir
 from (irb):1:in `require'
 from (irb):1 

 I tried the same in irb require 'watir' , here also getting same
 error for both in IE and Firefox. Is this problem with latest version
 or I need to do something more to get start with latest version.


 Cheers
 Amit

 
   


--~--~-~--~~~---~--~~
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: Help on updating the Watir website with ChromeWatir info

2009-01-19 Thread Bret Pettichord

I have handed over responsibility for the Watir website to Charley 
Baker, Alister Scott and Alan Baird.

Bret

sai wrote:
 Hi,
 Is it possible to update the watir website with the ChromeWatir and
 FlashWatir info? It will give people updated info about Watir.

 Thank you.

 Please let me know if you need more info.

 Regards,
 Sai

 http://code.google.com/p/chrome-watir
 http://code.google.com/p/flash-watir
 
   


--~--~-~--~~~---~--~~
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] AWTA Workshop Notes

2009-01-19 Thread Bret Pettichord
This weekend we held a workshop on several Watir related subjects.
http://awta.wikispaces.com/AWTA+2009

Notes, photos, presentations, and podcasts from the workshop have been
posted.
http://awta.wikispaces.com/Notes+from+AWTA+2009

Bret
-- 
Bret Pettichord
GTalk: bpettich...@gmail.com
CTO, WatirCraft LLC, http://www.watircraft.com
Lead Developer, Watir, http://wtr.rubyforge.org
Blog (Essays), http://www.io.com/~wazmo/blog
MiniBlog (Links), http://feeds.feedburner.com/bretshotlist

--~--~-~--~~~---~--~~
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: button.Click_No_Wait only highlights the button, does not click

2009-01-19 Thread Bret Pettichord

A patch that fixes this problem was recently submitted to the 
wtr-development list.

Bret

jensen2525 wrote:
 I ran into this issue and have been able to resolve what was causing
 this on Windows XP.  This may not be what's causing it for other folks
 but hopefully it will point them in the right direction.

 We have an TeamCity server that will execute our tests using Rake on
 the build agents running Windows XP.  When my scripts that were
 dealing with popups ran on the agents they failed every time with the
 same issue described in this thread.

 So what I did was take the simple Google sample and run it in a
 Command Prompt on the agent directly and it worked fine.  I used the
 Command Prompt window and executed my full test case and it ran fine.
 I shut down the TeamCity build agent service, and ran their agent
 batch files directly (not the service).  I kicked the build off again
 and it ran fine this time.

 The problem seemed to be related to the Ruby process executing under
 the SYSTEM user account.  I stopped running them through the service
 and instead as normal batch files in the Startup and they're working
 fine now.  It seems like there is an issue related to the
 @page_container.eval_in_spawned_process when running under this type
 of security setup.  Make sure whatever process is launching Ruby is
 running as a normal user account and see if that resolves the problem.


 Hope this helps.



 On Dec 12 2008, 9:19 am, Bret Pettichord b...@pettichord.com wrote:
   
 Your code is correct. There is something about your configuration that
 causes this to fail.

 Bret

 HAHAHA wrote:
 
 I have tried, using this code:
   
 require 'watir'
   
 browser = Watir::IE.new
 browser.goto('http://www.google.com')
 browser2 = Watir::IE.attach(:title, /Google/)
 browser2.text_field(:name, 'q').set('Watir')
 browser2.button(:name, 'btnG').click_no_wait
   
 The click_no_wait still cannot run. Is the code right?
   
 On Dec 12, 9:58 am, larryni...@gmail.com larryni...@gmail.com
 wrote:
   
 Pramod, could you show us an example of your code?
 
 On Dec 11, 11:01 pm, pramod D petkar.pra...@gmail.com wrote:
 
 Hi Michael,
   
 Initially i also faced same problem when i use Click_no_wait control was
 going but never clicked it, To come around this initially i opened the IE
 (IE7)with blank page and then, i will attach the browser at the start of 
 the
 script and continue to execute my script as usual and worked correctly. 
 For
 time being you can fallow this turn around method.
   
 Thanks,
 Pramod
 On Fri, Dec 12, 2008 at 1:46 AM, Michael Hwee 
 michael_h...@yahoo.comwrote:
   
 That is disappointing.
 I believe that is something like OS and/or configuration issues, rather
 than watir itself.
 
 Michael
 
 - Original Message 
 From: larryni...@gmail.com larryni...@gmail.com
 To: Watir General watir-general@googlegroups.com
 Sent: Thursday, December 11, 2008 12:00:00 PM
 Subject: [wtr-general] Re: button.Click_No_Wait only highlights the 
 button,
 does not click
 
 Sorry, Michael, your code doesn't work either.  It opens the page,
 highlights the button yellow, and then just sits there.  No popup is
 ever launched because it doesn't actually click the button.  Watir
 doesn't report any errors, but it never completes, either.  If I
 change click_no_wait to click!, it does launch the popup, but the
 handle_nextpopup command never executes - it's been sitting here for
 90-120 seconds with the popup open not doing anything.  So, again, to
 summarize: click_no_wait is incapable of firing any events, but click!
 makes the script hang.- 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: problem in displaying objects from frames

2009-01-22 Thread Bret Pettichord

I'm not sure, but i think you can do frame.images.show instead.

Bret

Jagdeep Jain wrote:
 Hi,

 It seems that there are some problem with following methods with
 frames... are there any other ways we can have all images, spans,
 links, divs, frames, tables from the frames?

 1) Error: NoMethodError: undefined method `show_images' for
 #Watir::Frame:0x3f15bc8
 puts $browser.frame(#...@frame}).show_images
 puts $browser.frame(#...@frame}).show_spans
 puts $browser.frame(#...@frame}).show_labels
 puts $browser.frame(#...@frame}).show_links
 puts $browser.frame(#...@frame}).show_divs
 puts $browser.frame(#...@frame}).show_frames
 puts $browser.frame(#...@frame}).show_tables

 Following are working fine:
 puts $browser.frame(#...@frame}).show_all_objects
 puts $browser.frame(#...@frame}).html
 puts $browser.frame(#...@frame}).text
 puts $browser.frame(#...@frame}).links.each { |lnk|puts lnk.text; puts
 '-'}

 Thanks,
 Jagdeep
 
   


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