[wtr-general] Re: Watir Support for Table Header TH elements?

2009-05-30 Thread karimnumerouno

yeh xpath is the way but for rubyists it is better if we use the
HPRICOT library for screen scrapping very powerful

On May 30, 4:32 am, Chuck van der Linden sqa...@gmail.com wrote:
 I have some things happening where I really need to be able to access
 things that are defined as a header row (using TH tags) in a table.
 but Watir doesn't currently support this.

 Is this anywhere on the wishlist?   Or am I going to finally be forced
 into learning how to do xpath stuff?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: Multiple Attributes for Text Fields

2009-05-30 Thread karimnumerouno

hi could any one share a link our some stuff of multi attribute
selection, it there any doc there




On May 30, 3:52 am, Al Snow jas...@hotmail.com wrote:
 Try this:http://wiki.openqa.org/display/WTR/Basic+Authentication

 Thanks,
 Al Snow
 Linkedin:http://www.linkedin.com/in/alsnow
 Google Talk: jasnow1
 Twitter: jasnow

 Date: Thu, 28 May 2009 16:02:16 -0400
 Subject: [wtr-general] Re: Multiple Attributes for Text Fields
 From: parvinder.gho...@gmail.com
 To: watir-general@googlegroups.com

 i updated to 1.6.2 and all of sudden i'm getting the following error:

 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in 
 `initialize': failed to create WIN32OLE object from `AutoItX3.Control' 
 (WIN32OLERuntimeError)

 HRESULT error code:0x8007007e
   The specified module could not be found.
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in 
 `new'
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:113:in 
 `autoit'

 from 
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:425:in 
 `autoit'
 from 
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:413:in 
 `bring_to_front'
 from test.rb:34

 When i do this:
 --
 1. require 'watir'
 2. browser = Watir::IE.new()#(:title, /elements f/i)
 3. browser.goto(file:///C:/fit/unittests/html/elements_index.html)

 4. browser.bring_to_front
 5. browser.text_field(:id=txt_description, :index=3).flash
 6. browser.select_list(:id=dd_status, :index=2).flash()
 --

 Error is occurring at line 4 every single time.  If i comment it out the 
 script works fine.

 Any help is appreciated.

 Thanks,
 Parvinder

 On Thu, May 28, 2009 at 3:32 PM, Parvinder Ghotra 
 parvinder.gho...@gmail.com wrote:

 Thanks Charlie.
 i'm running watir-1.5.6.

 so i should move to 1.6.2?

 Parvinder

 On Thu, May 28, 2009 at 2:07 PM, Charley Baker charley.ba...@gmail.com 
 wrote:

 Multiple attribute support for input elements is supported in the latest 
 version. Which version are you running?

 -c

 On Thu, May 28, 2009 at 12:05 PM, Parvinder Ghotra 
 parvinder.gho...@gmail.com wrote:

 Did watir ever provide multiple attribute support for Text fields and Drop 
 downs.  I was very surprised to find that the following doesn't work:

 $ie.text_field(:id = aaa, :index = 2)

 Is there plan to provide multiple attribute support for things like Text 
 fields, drop downs, radio buttons, checkboxes and etc.

 Thank you!

 Parvinder Ghotra

 --
 Parvinder Ghotra

 --
 Parvinder Ghotra

 _
 HotmailĀ® has a new way to see what's up with your 
 friends.http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM...
--~--~-~--~~~---~--~~
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] asset_enabled error to click a button

2009-05-30 Thread Venkat

I wrote a code to click on button
ie.button(:id, action_button).click

But I am getting following errors:
C:\Documents and Settings\\Desktopruby two-minute.rb
C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
`assert_e
abled': object id and action_button is disabled
(Watir::Exception::ObjectDisabl
dException)
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:22
:in `click!'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
element.rb:21
:in `click'
from two-minute.rb:18

HTML Source code of the button

div id=mid_row/div
div id=bot_row
  button type=button class=button id=action_button/
button
/div

My guess is my syntax is right but still its not clicking on button. I
am not sure why?



--~--~-~--~~~---~--~~
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: asset_enabled error to click a button

2009-05-30 Thread Wesley Chen
I think it is not a common button, but defined in the css.
You may try the xpath solution as below:
ie.element_by_xpath(//butt...@id='action_button']/).click

In fact, when you search in the Watir General, there are many discussion and
solution about XPATH deal with, of course, if you are interested in it.

Thanks.
Wesley Chen.


On Sat, May 30, 2009 at 3:32 PM, Venkat venkateshla...@gmail.com wrote:


 I wrote a code to click on button
 ie.button(:id, action_button).click

 But I am getting following errors:
 C:\Documents and Settings\\Desktopruby two-minute.rb
 C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
 `assert_e
 abled': object id and action_button is disabled
 (Watir::Exception::ObjectDisabl
 dException)
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 element.rb:22
 :in `click!'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/
 element.rb:21
 :in `click'
from two-minute.rb:18

 HTML Source code of the button

 div id=mid_row/div
div id=bot_row
  button type=button class=button id=action_button/
 button
/div

 My guess is my syntax is right but still its not clicking on button. I
 am not sure why?



 


--~--~-~--~~~---~--~~
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] example problem

2009-05-30 Thread James

ok completely new to the world of ruby as well as programming
  The final goal is too scrape an ajax site... if I understand
currently I need both watir and firewatir?
I am trying to go through some online examples and am trying to
complete the google_search.rb example that seems to be floating
around.

I don't think the program is running properly when I  
require watir
 because I get the error  google_search.rb:14:in
`require': no such file to load -- watir (LoadError)

any idea what this means? I am running windows xp

thanks for the help 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
-~--~~~~--~~--~--~---