Re: [wtr-general] Re: Stop Firefox?

2010-04-07 Thread ravi pulipaka
the above method works fine but the problem is sometimes the page needs more
time than you mention in such cases it will fail
you can use a function called wait until if you know the next element you
are going to test

On Wed, Apr 7, 2010 at 4:05 PM, Nate nate.s.bar...@gmail.com wrote:

 very cool. I'll mess around with it now :)

 On Apr 7, 12:52 pm, Ethan notet...@gmail.com wrote:
  You can basically override any method anywhere in ruby.
 
  require 'firewatir'
  class FireWatir::Firefox
def wait
  sleep 5 # just pause a few seconds rather than actually checking to
 see
  if the page is still loading
end
  end
 
  that should clobber the existing Firefox#wait method. (Note: that's just
  written off the top of my head and untested.)
 
 
 
  On Wed, Apr 7, 2010 at 15:39, Nate nate.s.bar...@gmail.com wrote:
   Hey Ethan,
 
   Thanks for the response.  Can I override the wait method through my
   script or do I have to do that through the source?
 
   On Apr 7, 11:49 am, Ethan notet...@gmail.com wrote:
That is tricky. Watir generally should wait until the page is loaded
   until
it tries to do anything, or it will probably end up interacting with
 a
partially-loaded page where the elements that you try to use don't
 exist
yet. But, if the application never says the page is loaded, there's
 no
   way
to know when that is.
You could override the #wait method to just sleep for some constant
   amount
of time, perhaps. That's my best thought.
 
On Wed, Apr 7, 2010 at 14:42, Nate nate.s.bar...@gmail.com wrote:
 Any suggestions?
 
 --
 Before posting, please readhttp://watir.com/support. In short:
 search
 before you ask, be nice.
 
 You received this message because you are subscribed to
http://groups.google.com/group/watir-general
 To post: watir-general@googlegroups.com
 
 To unsubscribe, reply using remove me as the subject.
 
   --
   Before posting, please readhttp://watir.com/support. In short: search
   before you ask, be nice.
 
   You received this message because you are subscribed to
  http://groups.google.com/group/watir-general
   To post: watir-general@googlegroups.com

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

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


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

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


[wtr-general] Re: Issue trying to click on a span element using safariwatir

2009-11-24 Thread ravi pulipaka
generally i feel span doesnot support text refer to supported methods by
element in watir wiki
but confirm with others
anyways try this
browser.span(:text, /.*butterfly/).click

ravi


On Thu, Nov 19, 2009 at 2:57 PM, Tiffany Fodor tcfo...@comcast.net wrote:


 Hi!

 Since you're already using a regex, could you do this:

 browser.span(:text, /butterfly/).click

 or do you have multiple spans with 'butterfly' in the text?  If so,
 could you specify the one you want using it's index?

 browser.span(:text = /butterfly/, :index = 3).click

 Also, it might help to determine if this issue is limited to
 safariwatir or if it happens in other flavors of watir as well.  Have
 you tried the command on an IE or Firefox browser in irb?

 Hope this helps!

 -Tiffany


 On Nov 19, 9:03 am, Ethan notet...@gmail.com wrote:
  The (?-mix stuff is just the string representation of the regexp - you
 can
  see this on any regexp doing #to_s: /foo/.to_s
 
  = (?-mix:foo)
  But, I don't have anything more useful to add; I don't really know
 anything
  about safariwatir - sorry.
 
  On Thu, Nov 19, 2009 at 10:59, QAguy qablogm...@gmail.com wrote:
 
   Unfortunately that didn't work either. I did this:
 
   browser.span(:text, /butterfly\.m4v/).click and got this:
 
   Unable to locate Span element with text of (?-mix:butterfly\.m4v)
 
   I'm not sure what the ?-mix: part of that is. Anything else you can
   recommend?
 
   QAguy
 
   On Nov 19, 3:52 am, John Kolokotronis johnj...@gmail.com wrote:
The dot character in a regex (.) is a wildcard so you need to escape
it. Try this:
 
browser.span(:text, /butterfly\.m4v/).click
 
Regards,
 
John
 
On Nov 18, 3:35 pm, QAguy qablogm...@gmail.com wrote:
 
 I cannot add an id as I don't have control over code decisions
 unfortunately. So I am forced to work with what I have.
 
 I also tried this: browser.span(:text, /butterfly.m4v/).click which
 gives me this:
 
 Unable to locate Span element with text of (?-mix:butterfly.m4v)
 
 and this: browser.span(:title, /butterfly.m4v/).click which gives
 me
 this:
 
 SafariWatir does not currently support finding by title
 
 So I'm kinda stumped at the moment as to what to do.
 
 Thanks
 QAguy
 
 On Nov 17, 9:16 pm, Adam Esterline a...@esterlines.com wrote:
 
  Hmm... I am not sure why it cannot find the span.
 
  Does it seem to only be a problem when finding by text?Can
 you
   add
  an id to that span?Does it work when searching for it by id?
 
  Looking for a little more information.
 
  AE
 
  On Tue, Nov 17, 2009 at 3:57 PM, QAguy qablogm...@gmail.com
 wrote:
 
   I am using the following:
 
   browser.span(:text,'butterfly.m4v').click
 
   to click on that item in the following code:
 
   span class=name
   a title=butterfly.m4v class=trim_to_height 1_lines
   href=/videos/
   359dd3be1914b8spanbutterfly.m4v/span/a
   /span
 
   But I get the following result:
 
   Unable to locate Span element with text of butterfly.m4v
 
   This is being run from a file using rpsec with safariwatir. No
 sure
   why this is not working. Hoping someone can help.
 
   Thanks
   QAguy
 
  --
  Adam Esterlinehttp://adamesterline.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

2009-11-13 Thread ravi pulipaka
Hi Al snow,

it worked, you are awesome
thanx a lot
ravi

On Thu, Nov 12, 2009 at 7:53 PM, Al Snow jas...@hotmail.com wrote:

  Try 
 this:http://sameshirteveryday.com/2009/04/18/missing-a-character-on-windows-with-rspec-and-cucumber/

 Thanks,
 Al Snow

 ===
 Date: Thu, 12 Nov 2009 14:10:29 -0500
 Subject: [wtr-general] Re: Watir Help
 From: ravi8...@gmail.com
 To: watir-general@googlegroups.com


 can i too have the detective number as I am also facing the problem of
 missing 'a'
 I have latest versions of watir and cucumber
 Any suggestions
 thanx in advance

 ravi

 On Thu, Nov 12, 2009 at 9:15 AM, tester86 sagar.am...@gmail.com wrote:


 hahahahahhaha very funny, hire a private dectivtive,...I know that
 the letter 'a' was missing before but after several reinstalls of ruby
 I did not bother to apply the fix to put the letter 'a' back onbut
 thanks for the comment.

 On Nov 9, 3:15 pm, Ethan notet...@gmail.com wrote:
  Somebody seems to be stealing all of your letters 'a'. Watir needs these,
  otherwise it's just 'wtir', and lacking the 'application' part can't do
  anything. I suggest you hire a privte detective to track down where all
 of
  your 'a's are disappearing to. The police are no help with this sort of
  thing - they have no 'a' in their name, and don't care.
 
 
 
  On Mon, Nov 9, 2009 at 15:29, tester86 sagar.am...@gmail.com wrote:
 
   Using cucumber and watir - Vista and Windows 7
 
   Get the following error message:
 
Unble to locte element, using :nme,
   q (Wtir::Exception::UnknownObjectException)
./fetures/step_definitions/serch_steps.rb:11:in `/I serch for
   (.*)/'fetures/serch.feture:8:in `When I serch for cucumber github'
 
   Then I should see BDD tht tlks to domin experts first nd code second
   # fet
   ures/step_definitions/serch_steps.rb:15
 
   Anyone have any basic watir scripts that I can use with cucumber- Hide
 quoted text -
 
  - Show quoted text -





 --
 Find the right PC with Windows 7 and Windows Live. Learn 
 more.http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wlfilt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000cat=1,2,3,4,5,6brands=5,6,7,8,9,10,11,12,13,14,15,16addf=4,5,9ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009

 


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



[wtr-general] Re: install for 1.6.2 doesn't work after 1.6.5 release

2009-11-12 Thread ravi pulipaka
Hello,

I too had the same problem the I just installed commonwatir 1.6.5 and the
installed watir -v 1.6.2
it let me do the installation but when i ran the previously running script
it faild stating no such file to laod watir/ie

Any suggestions

thanx in advance

regards
ravi

On Thu, Nov 12, 2009 at 12:58 PM, Alan Baird alan.ba...@riskmetrics.comwrote:


 This morning I was helping a coworker get some things up and running with
 watir and noticed that he had inadvertently got 1.6.5.  Since 1.6.5 changes
 the way .visible? works, we decided to go back to 1.6.2 and make sure
 everything was ok there.  We removed watir, commonwatir and firewatir and
 verified that everything was uninstalled.  After that, we did the following:

 C:\ gem install watir -v 1.6.2
 ERROR:  Error installing watir:
firewatir requires commonwatir (= 1.6.5, runtime)

 C:\ gem list --local

 *** LOCAL GEMS ***
 (removed unnecessary gems)
 ...
 commonwatir (1.6.2)
 ...

 C:\ gem install firewatir -v 1.6.2
 Successfully installed firewatir-1.6.2
 1 gem installed
 Installing ri documentation for firewatir-1.6.2...
 Installing RDoc documentation for firewatir-1.6.2...

 C:\ gem install watir -v 1.6.2
 Successfully installed watir-1.6.2
 1 gem installed
 Installing ri documentation for watir-1.6.2...
 Installing RDoc documentation for watir-1.6.2...

 So, to me it seems that there is a gem dependency in the firewatir install
 for commonwatir 1.6.5 (or maybe it's just the latest version).

 What do you think?

 Alan

 This email message and any attachments are for the sole use of the intended
 recipients and may contain proprietary and/or confidential information which
 may be privileged or otherwise protected from disclosure. Any unauthorized
 review, use, disclosure or distribution is prohibited. If you are not an
 intended recipient, please contact the sender by reply email and destroy the
 original message and any copies of the message as well as any attachments to
 the original message.

 


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

2009-11-12 Thread ravi pulipaka
can i too have the detective number as I am also facing the problem of
missing 'a'
I have latest versions of watir and cucumber
Any suggestions
thanx in advance

ravi

On Thu, Nov 12, 2009 at 9:15 AM, tester86 sagar.am...@gmail.com wrote:


 hahahahahhaha very funny, hire a private dectivtive,...I know that
 the letter 'a' was missing before but after several reinstalls of ruby
 I did not bother to apply the fix to put the letter 'a' back onbut
 thanks for the comment.

 On Nov 9, 3:15 pm, Ethan notet...@gmail.com wrote:
  Somebody seems to be stealing all of your letters 'a'. Watir needs these,
  otherwise it's just 'wtir', and lacking the 'application' part can't do
  anything. I suggest you hire a privte detective to track down where all
 of
  your 'a's are disappearing to. The police are no help with this sort of
  thing - they have no 'a' in their name, and don't care.
 
 
 
  On Mon, Nov 9, 2009 at 15:29, tester86 sagar.am...@gmail.com wrote:
 
   Using cucumber and watir - Vista and Windows 7
 
   Get the following error message:
 
Unble to locte element, using :nme,
   q (Wtir::Exception::UnknownObjectException)
./fetures/step_definitions/serch_steps.rb:11:in `/I serch for
   (.*)/'fetures/serch.feture:8:in `When I serch for cucumber github'
 
   Then I should see BDD tht tlks to domin experts first nd code second
   # fet
   ures/step_definitions/serch_steps.rb:15
 
   Anyone have any basic watir scripts that I can use with cucumber- 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 gem tries to build against the win32 API on a mac

2009-11-03 Thread ravi pulipaka
try uninstalling watir,safariwatir and firewatir
install only firewatir and safari watir and check if you had a gem named
activerecord
install it it worked for  me so give it a shot

On Fri, Oct 9, 2009 at 4:37 AM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Fri, Oct 9, 2009 at 11:23 AM, Manish Chakravarty manishch...@gmail.com
 wrote:
  sudo gem install firewatir
  sudo gem install safari watir

 There should not be space in `safari watir`. You should do this (
 http://watir.com/installation/):

 sudo gem update --system

 sudo gem install firewatir
 sudo gem install safariwatir

  So I decided to do a gem install watir

 That does not work on Mac.

 Ž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: reg firewatir on mac

2009-10-16 Thread ravi pulipaka
Thanx for the reply I found some documentaion in wiki but i tried to do the
same but still the problem exists i have firefox 3.5 version and jssh 0.9
plugin , still the  problem unable to connect 127.0.0.1 ...any suggestions
to solve the problem

thanx in advance

ravi



On Thu, Oct 15, 2009 at 4:16 PM, Željko Filipin 
zeljko.fili...@wa-research.ch wrote:

 On Thu, Oct 15, 2009 at 6:34 PM, ravi ravi8...@gmail.com wrote:
  I am trying to install firewatir on mac with snowleopard os
  i am getting error of jssh

 I think we do not have jssh for new Mac OS. There are instructions how to
 build it here on the list somewhere or on the wiki. If you can not find it,
 let me know.

 Ž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: need a command to check for a feild is visible ornot

2009-09-22 Thread ravi pulipaka
its giving me an error undefiend meathod visible
i tried updating the gems but stil the error is there
can you help regarding

thanx in advance
ravi

On Mon, Sep 21, 2009 at 11:12 PM, Rohan Ojha rohan.o...@bsil.com wrote:

  If you want to check whether a given object is visible in the UI of the
 page then you can try:





 ie.hidden (:attribute, property).visible? ==false then

 puts ‘Object is hidden’

 else

 puts ‘Object is not hidden’

 end





 Note that you have to use hidden instead of text_field or button





 *Thanks*,
 *Rohan Ojha*
  *Blue Star Infotech* lÈ+91 900 4955058l ( +91 22 6688 6969 l 6 +91 22
 6688 6999 l * rohan.o...@bsil.com
   www.bsil.com - Where Partnerships Are Built on Trust
  --

 *From:* watir-general@googlegroups.com [mailto:
 watir-gene...@googlegroups.com] *On Behalf Of *ravi pulipaka
 *Sent:* Tuesday, September 22, 2009 6:29 AM
 *To:* watir-general@googlegroups.com
 *Subject:* [wtr-general] Re: need a command to check for a feild is
 visible ornot



 I have tried visible?.should be false but it didnt work




  On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote:


 Maybe something like:

 browser.text_field(:id, 'id').visible?

 http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

 Hope that helps.


 On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
  I have a situation
 
  I have a text box which pops up when I select a option from a
  selectlist above it, otherwise is is not visible on the screen
 
  if I use the command available in watir
 
   eval(browser.field).should_not exist -  it fails
 
  if i say should exist ---it passes
 
  I think it is in the dom
  can you suggest me any options
 
  Thanx in advance
 
  regards
  ravi




 


--~--~-~--~~~---~--~~
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 a command to check for a feild is visible ornot

2009-09-22 Thread ravi pulipaka
thanx guys I go it

http://wiki.openqa.org/pages/viewpage.action?pageId=1119

once agin thanx agin for youe help

On Tue, Sep 22, 2009 at 11:59 AM, karim rayani karim@gmail.com wrote:

 Could you share the URL of the application with us so that I could
 understand how the application id designed.

 FROM
 Karim Rayani

 http://karimnumerouno.wordpress.com




 On Tue, Sep 22, 2009 at 7:42 AM, ravi pulipaka ravi8...@gmail.com wrote:

 its giving me an error undefiend meathod visible
 i tried updating the gems but stil the error is there
 can you help regarding

 thanx in advance
 ravi

   On Mon, Sep 21, 2009 at 11:12 PM, Rohan Ojha rohan.o...@bsil.comwrote:

  If you want to check whether a given object is visible in the UI of the
 page then you can try:





 ie.hidden (:attribute, property).visible? ==false then

 puts ‘Object is hidden’

 else

 puts ‘Object is not hidden’

 end





 Note that you have to use hidden instead of text_field or button





 *Thanks*,
 *Rohan Ojha*
  *Blue Star Infotech* lÈ+91 900 4955058l ( +91 22 6688 6969 l 6 +91 22
 6688 6999 l * rohan.o...@bsil.com
   www.bsil.com - Where Partnerships Are Built on Trust
  --

 *From:* watir-general@googlegroups.com [mailto:
 watir-gene...@googlegroups.com] *On Behalf Of *ravi pulipaka
 *Sent:* Tuesday, September 22, 2009 6:29 AM
 *To:* watir-general@googlegroups.com
 *Subject:* [wtr-general] Re: need a command to check for a feild is
 visible ornot



 I have tried visible?.should be false but it didnt work




  On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote:


 Maybe something like:

 browser.text_field(:id, 'id').visible?

 http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

 Hope that helps.


 On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
  I have a situation
 
  I have a text box which pops up when I select a option from a
  selectlist above it, otherwise is is not visible on the screen
 
  if I use the command available in watir
 
   eval(browser.field).should_not exist -  it fails
 
  if i say should exist ---it passes
 
  I think it is in the dom
  can you suggest me any options
 
  Thanx in advance
 
  regards
  ravi











 --
 Regards,

 Alkarim Rayani


 


--~--~-~--~~~---~--~~
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 a command to check for a feild is visible or not

2009-09-21 Thread ravi pulipaka
I have tried visible?.should be false but it didnt work





On Mon, Sep 21, 2009 at 8:19 PM, orde ohil...@gmail.com wrote:


 Maybe something like:

 browser.text_field(:id, 'id').visible?

 http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html#M000318

 Hope that helps.

 On Sep 21, 1:31 pm, ravi ravi8...@gmail.com wrote:
  I have a situation
 
  I have a text box which pops up when I select a option from a
  selectlist above it, otherwise is is not visible on the screen
 
  if I use the command available in watir
 
   eval(browser.field).should_not exist -  it fails
 
  if i say should exist ---it passes
 
  I think it is in the dom
  can you suggest me any options
 
  Thanx in advance
 
  regards
  ravi
 


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