[wtr-general] Re: asset_enabled error to click a button

2009-06-01 Thread Swapnal
Try this
ie.button(:id, action_button).click_no_wait

On Sat, May 30, 2009 at 1:02 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] Re: asset_enabled error to click a button

2009-06-01 Thread Željko Filipin
2009/5/30 Venkat venkateshla...@gmail.com
 object id and action_button is disabled
 (Watir::Exception::ObjectDisabldException)

Well, you are clicking element that is disabled. Have you read the error
message? :)

Watir says it can not click a button because it is disabled. Take a look why
is it disabled.

Željko

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



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

2009-06-01 Thread Željko Filipin
2009/5/30 Chuck van der Linden sqa...@gmail.com
 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.

Really? I thought you could do:

browser.th(how, what)

You can extend Watir if that does not work:

http://zeljkofilipin.com/2007/07/04/extend-watir/

 Or am I going to finally be forced
 into learning how to do xpath stuff?

Xpath is not complicated for simple things:

ie.link(:xpath,//a...@href='test.htm']/).text

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

Željko
--
http://watirpodcast.com/

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



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

2009-06-01 Thread Chuck van der Linden

On May 30, 4:50 am, karimnumerouno karim@gmail.com wrote:
 hi could any one share a link our some stuff of multi attribute
 selection, it there any doc there


be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes
--~--~-~--~~~---~--~~
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 Support for Table Header TH elements?

2009-06-01 Thread Chuck van der Linden

browser.th  didn't work when I tried it.  not in docs I printed a few
months ago..   was there a new release of watir recently that added
this?  did I miss something?

I know I can extend.  even found some stuff in a thread circa dec2008
for this specific functionality.  but I figured TH is not exactly 'out
in deep left field'  table hreaders being fairly mainstream, and if I
need it, I'm not likely to be the only one, so figured asking made
sense..

I'll have to look into the extending mechanism.. am  correct that it's
done in such a way that I don't have to re-do it whenever I update
watir (unless watir ends up incorporating the thing I was extending,
and I'm then conflicting?)

On Jun 1, 2:45 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 2009/5/30 Chuck van der Linden sqa...@gmail.com

  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.

 Really? I thought you could do:

 browser.th(how, what)

 You can extend Watir if that does not work:

 http://zeljkofilipin.com/2007/07/04/extend-watir/

  Or am I going to finally be forced
  into learning how to do xpath stuff?

 Xpath is not complicated for simple things:

 ie.link(:xpath,//a...@href='test.htm']/).text

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

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



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

2009-06-01 Thread Charley Baker
That's excellent, I've never seen the automated version.

-c

On Mon, Jun 1, 2009 at 9:42 AM, Chuck van der Linden sqa...@gmail.comwrote:


 On May 30, 4:50 am, karimnumerouno karim@gmail.com wrote:
  hi could any one share a link our some stuff of multi attribute
  selection, it there any doc there
 

 be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes
 


--~--~-~--~~~---~--~~
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-06-01 Thread Darin Duphorn
That is nice.

 



From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of Charley Baker
Sent: Monday, June 01, 2009 10:56 AM
To: watir-general@googlegroups.com
Subject: [wtr-general] Re: Multiple Attributes for Text Fields

 

That's excellent, I've never seen the automated version. 

-c

On Mon, Jun 1, 2009 at 9:42 AM, Chuck van der Linden sqa...@gmail.com
wrote:


On May 30, 4:50 am, karimnumerouno karim@gmail.com wrote:
 hi could any one share a link our some stuff of multi attribute
 selection, it there any doc there


be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes

 





--~--~-~--~~~---~--~~
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-06-01 Thread Chuck van der Linden

Yeah Z is correct I think, you are trying to click it before it's
enbled.

it seems like perhaps this button is inhereting some functionality via
CSS or some other means.  In the HTML you give, there's no label for
it, there's no functionlity attached to it, it's just like a template
waiting to be filled in.. you could click it all day long in the HTML
you sent, and nothing would ever happen..

There has to be other code to make things happen, that's enabling or
disabling the button, defining what happens when it is clicked, etc.

Frankly it would seem that there's something that perhaps makes it
start out disabled?  so you might need to investigate what controls
that, and what has to happen to enable the button for use.   Some
other action might need to preceed clicking the button, or you may
just need to wait a few seconds after the page is loaded for client
side code to do it's thing if there is extensive client side
scripting.

On Jun 1, 2:34 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 2009/5/30 Venkat venkateshla...@gmail.com

  object id and action_button is disabled
  (Watir::Exception::ObjectDisabldException)

 Well, you are clicking element that is disabled. Have you read the error
 message? :)

 Watir says it can not click a button because it is disabled. Take a look why
 is it disabled.

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



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

2009-06-01 Thread Charley Baker
I thought we had TH defined as well, but looking at the code, it's not
there. Feel free to add a Jira ticket for this. If you do have Watir
extensions then when/if we add whatever tags you have, then you can remove
it from your own Watir extension and that's it.


Charley Baker
blog: http://blog.charleybaker.org/
Lead Developer, Watir, http://wtr.rubyforge.org
QA Architect, Gap Inc Direct


On Mon, Jun 1, 2009 at 9:53 AM, Chuck van der Linden sqa...@gmail.comwrote:


 browser.th  didn't work when I tried it.  not in docs I printed a few
 months ago..   was there a new release of watir recently that added
 this?  did I miss something?

 I know I can extend.  even found some stuff in a thread circa dec2008
 for this specific functionality.  but I figured TH is not exactly 'out
 in deep left field'  table hreaders being fairly mainstream, and if I
 need it, I'm not likely to be the only one, so figured asking made
 sense..

 I'll have to look into the extending mechanism.. am  correct that it's
 done in such a way that I don't have to re-do it whenever I update
 watir (unless watir ends up incorporating the thing I was extending,
 and I'm then conflicting?)

 On Jun 1, 2:45 am, Željko Filipin zeljko.fili...@wa-research.ch
 wrote:
  2009/5/30 Chuck van der Linden sqa...@gmail.com
 
   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.
 
  Really? I thought you could do:
 
  browser.th(how, what)
 
  You can extend Watir if that does not work:
 
  http://zeljkofilipin.com/2007/07/04/extend-watir/
 
   Or am I going to finally be forced
   into learning how to do xpath stuff?
 
  Xpath is not complicated for simple things:
 
  ie.link(:xpath,//a...@href='test.htm']/).text
 
  http://wiki.openqa.org/display/WTR/XPath
 
  Željko
  --http://watirpodcast.com/
 


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



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

2009-06-01 Thread Chuck van der Linden

evil grin..  yeah that's the passive-agressive 'clue-by-four' version
of a google link.   I use it in cases where I feel I'm faced with the
infamous (give-fish  teach-to-fish) situation.

you can just go to www.lmgtfy.com  (Let Me Google That For You) put in
the terms, and it creates a link you can paste into responses.

If the seach terms are less than obvious, I don't generally use it..
but if the 'obvious' search terms return the desired info as the top
item in the results...

Now, back to solving the issue at hand...

On Jun 1, 8:55 am, Charley Baker charley.ba...@gmail.com wrote:
 That's excellent, I've never seen the automated version.

 -c

 On Mon, Jun 1, 2009 at 9:42 AM, Chuck van der Linden sqa...@gmail.comwrote:





  On May 30, 4:50 am, karimnumerouno karim@gmail.com wrote:
   hi could any one share a link our some stuff of multi attribute
   selection, it there any doc there

  be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes- 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: Watir and flash audio

2009-06-01 Thread Bill Agee
Can you leave a user logged into the machine where the test is failing?

I had a similar problem - some GUI tests would not work without a user
logged in to Windows.  So my Watir machines (VMs, actually) are configured
to automatically log in as a particular user at boot.  You can do this in XP
or Vista.

Thanks
Bill

On Mon, Jun 1, 2009 at 6:40 AM, Philbo phi...@gmail.com wrote:


 Hi,

 One of our Watir tests is based around a flash audio playback element
 embedded in a page. It's trying to test that playback occurs after
 clicking a Play button.

 I'm finding that when the test runs on our build server it fails, yet
 when I run it locally it passes. In addition to this, if I'm logged on
 to the build server when the test runs it passes also.

 My initial thought is that when no one is logged on to the build
 server some audio drivers are not loaded which is then affecting the
 flash playback.

 Does anyone have any ideas for a possible solution or work around?
 Maybe some way to force the drivers to load?

 To be clear, I don't want to test for an audio response from the page.
 I plan to do this by checking a playback progress bar. The problem is
 getting the flash element to play.

 Any help or wild ideas appreciated!

 Thanks,
 Philbo

 


--~--~-~--~~~---~--~~
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 Support for Table Header TH elements?

2009-06-01 Thread Chuck van der Linden

http://jira.openqa.org/browse/WTR-317

I think that might be my first one.   not sure of your conventions so
I sorta punted when picking values for some of the select lists for
the item.  I presume TPTB will edit the issue if I got anything
wrong.

On Jun 1, 9:11 am, Charley Baker charley.ba...@gmail.com wrote:
 I thought we had TH defined as well, but looking at the code, it's not
 there. Feel free to add a Jira ticket for this. If you do have Watir
 extensions then when/if we add whatever tags you have, then you can remove
 it from your own Watir extension and that's it.

 Charley Baker
 blog:http://blog.charleybaker.org/
 Lead Developer, Watir,http://wtr.rubyforge.org
 QA Architect, Gap Inc Direct

 On Mon, Jun 1, 2009 at 9:53 AM, Chuck van der Linden sqa...@gmail.comwrote:





  browser.th  didn't work when I tried it.  not in docs I printed a few
  months ago..   was there a new release of watir recently that added
  this?  did I miss something?

  I know I can extend.  even found some stuff in a thread circa dec2008
  for this specific functionality.  but I figured TH is not exactly 'out
  in deep left field'  table hreaders being fairly mainstream, and if I
  need it, I'm not likely to be the only one, so figured asking made
  sense..

  I'll have to look into the extending mechanism.. am  correct that it's
  done in such a way that I don't have to re-do it whenever I update
  watir (unless watir ends up incorporating the thing I was extending,
  and I'm then conflicting?)

  On Jun 1, 2:45 am, Željko Filipin zeljko.fili...@wa-research.ch
  wrote:
   2009/5/30 Chuck van der Linden sqa...@gmail.com

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.

   Really? I thought you could do:

   browser.th(how, what)

   You can extend Watir if that does not work:

  http://zeljkofilipin.com/2007/07/04/extend-watir/

Or am I going to finally be forced
into learning how to do xpath stuff?

   Xpath is not complicated for simple things:

   ie.link(:xpath,//a...@href='test.htm']/).text

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

   Željko
   --http://watirpodcast.com/- 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: Firewatir vs watir API

2009-06-01 Thread marekj

I've noticed that in my tests that parent returns a String in firefox.
Some tests here
http://github.com/marekj/watirloo/blob/7c5e757c0b2efce76f8254198ca62bb1c6d533b8/test/label_test.rb
I've never needed to use parent so I didn't persue it but now might be
a time to take a look at it again.
marekj



On Mon, Jun 1, 2009 at 7:06 PM,  andrew.d...@lthree.com wrote:

 I have tests blowing up when I use 'parent', which is supported in
 watir, but does not seem to be in firewatir. Is there a way to access
 a parent node that is compatible across browsers? Is firewatir still
 the way to go when driving 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 vs watir API

2009-06-01 Thread karimnumerouno

there is another API called commonwatir, if the script is designed in
a fashion in which both the browsers are supported then i guess we
should not have these browser specific problems

On Jun 2, 9:12 am, marekj marekj@gmail.com wrote:
 I've noticed that in my tests that parent returns a String in firefox.
 Some tests 
 herehttp://github.com/marekj/watirloo/blob/7c5e757c0b2efce76f8254198ca62b...
 I've never needed to use parent so I didn't persue it but now might be
 a time to take a look at it again.
 marekj

 On Mon, Jun 1, 2009 at 7:06 PM,  andrew.d...@lthree.com wrote:

  I have tests blowing up when I use 'parent', which is supported in
  watir, but does not seem to be in firewatir. Is there a way to access
  a parent node that is compatible across browsers? Is firewatir still
  the way to go when driving 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: Multiple Attributes for Text Fields

2009-06-01 Thread Prajakta Jadhav
thats really cool!

On Mon, Jun 1, 2009 at 9:12 PM, Chuck van der Linden sqa...@gmail.comwrote:


 On May 30, 4:50 am, karimnumerouno karim@gmail.com wrote:
  hi could any one share a link our some stuff of multi attribute
  selection, it there any doc there
 

 be a tool user:  http://www.lmgtfy.com/?q=watir+multiple+attributes
  


--~--~-~--~~~---~--~~
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 and flash audio

2009-06-01 Thread Prajakta Jadhav
I had this problem when I used $ie.send_keys() function.. this does not
work if user hasn't logged in to windows.
Maybe you are using some such GUI function in your script. Guess you ll have
to use some other alternative for that function.


On Mon, Jun 1, 2009 at 7:10 PM, Philbo phi...@gmail.com wrote:


 Hi,

 One of our Watir tests is based around a flash audio playback element
 embedded in a page. It's trying to test that playback occurs after
 clicking a Play button.

 I'm finding that when the test runs on our build server it fails, yet
 when I run it locally it passes. In addition to this, if I'm logged on
 to the build server when the test runs it passes also.

 My initial thought is that when no one is logged on to the build
 server some audio drivers are not loaded which is then affecting the
 flash playback.

 Does anyone have any ideas for a possible solution or work around?
 Maybe some way to force the drivers to load?

 To be clear, I don't want to test for an audio response from the page.
 I plan to do this by checking a playback progress bar. The problem is
 getting the flash element to play.

 Any help or wild ideas appreciated!

 Thanks,
 Philbo

 


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