[wtr-general] Re: How to wait until an element is visible on a page

2009-12-01 Thread KimBrown
http://wiki.openqa.org/display/WTR/How+to+wait+with+Watir

I've used this:

  while (not $ie.html.include? "my html")

puts "not there yet  ..."
sleep 5
  end

You can also use $ie.text.include? & there are probably other ones
too, but that's all I seem to need.
You could also put in a timeout limit as well.


Kim


On Nov 30, 2:39 pm, QAguy  wrote:
> I have this piece of code on a page I am trying to script against.
>
> 
> 
> Done!
> Go to your
> video
> 
> 
>
> This div always exists, but it not always VISIBLE on the page. I want
> to create a wait until this element is visible on the page but not
> sure how to do this?
>
> Was thinking something like this but doesn't seem to work:
>
> Watir::Waiter::wait_until { @browser.div(:class,
> 'encoding_complete').visible? == true} but it doesn't work as I think
> the use of visible here is invalid. Hoping someone help me.
>
> Thanks
> QAguy

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


[wtr-general] How to check if toggle link is open or closed

2010-04-26 Thread KimBrown
I have a javascript link that toggles a section of additional options
open and closed. I can click on it to open & close:
   $ie.link(:text, /More Choices/).click

I can find it:
   irb(main):050:0* puts $ie.links

   type:
   id:
   name:
   value:
   disabled: false
   href: javascript:toggleRows('fields');
   inner text:   Hide/Show More Choices
-- and --
   irb(main):050:0* puts $ie.text

   Hide/Show More Choices


But I can't figure out how to do a  check on whether it's open or
closed. From the user's perspective the text changes between "Hide"
and "Show" accordingly but don't know where the code indicates which
is engaged. I've searched around quite a bit but haven't found
anything to help. Suggestions?



Here is what I think is the relevant code. Let me know if that's not
sufficient. Also, the website is a subscription site but I can give a
temporary login if someone emails me for it.














More Choices




-- 
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: How to check if toggle link is open or closed

2010-04-26 Thread KimBrown
George, you are my new best friend.  I can now check whether or not a
field in the More Choices is visible or not. Thanks!

Kim

On Apr 26, 2:46 pm, George  wrote:

>
> browser = Watir::IE.attach(:title, /Menu/)
> puts browser.link(:text, /Featured./).visible? # true if the menu is
> expanded, false if hidden
>

-- 
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: how do i select from ctrls?

2010-05-25 Thread KimBrown
Since you're in beginner mode, you may want to download Webmetrics RIA
Script Recorder. You can see the code it creates and can cut and paste
it into your scripts. It doesn't work on everything, but will get you
started.

Kim



On May 24, 11:41 am, dave  wrote:
> accessing and clicking onCTRLSthat appear as select_lists
> how to click on the inner most sub-list...
>
> the select_list in this web page is based onctrlswith this xpath
>

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

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


[wtr-general] new page has no focus

2010-07-26 Thread KimBrown
There are a couple of spots in my application where nothing happens. I
think it's because a page with no defaulted active field (ie.,
blinking cursor). Can I get watir to "activate" these pages?

I've searched in the archives and found a focus command:
$ie.text_field(:id, 'name'').focus()  but it doesn't do the trick.
Only with me clicking on the webpage, will this command and any others
that I try in my script continue to run. Until I click on the page
nothing happens.

Has anyone run into this?

thanks, Kim

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

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


[wtr-general] Re: new page has no focus

2010-07-27 Thread KimBrown
> The closest thing I've come across is when a page isn't finished
> loading and IE or Firefox times out.  It doesn't really sound like
> that's your problem though.

You're right, that's not it. It's completely loaded and will just sit
there patiently waiting until I click on it with the mouse. Then the
automated script action starts again.
>
> Have you tried using AutoIt send_keys to send a tab to put the focus
> on an element?
>
> $ie.send_keys("{TAB}")

It didn't help. Since programming isn't my knack, I wanted to check if
there was something that WATIR/Ruby could do to handle it.
I can get the developers to put a default start point/focus into the
app.  It won't be the first time I pester them with my
agenda....*THIS* I have a knack for.   :o)

Thanks Tiffany!

Kim


>
> On Jul 26, 1:29 pm, KimBrown  wrote:
>
>
>
> > There are a couple of spots in my application where nothing happens. I
> > think it's because a page with no defaulted active field (ie.,
> > blinking cursor). Can I get watir to "activate" these pages?
>
> > I've searched in the archives and found a focus command:
> > $ie.text_field(:id, 'name'').focus()  but it doesn't do the trick.
> > Only with me clicking on the webpage, will this command and any others
> > that I try in my script continue to run. Until I click on the page
> > nothing happens.
>
> > Has anyone run into this?
>
> > thanks, Kim- Hide quoted text -
>
> - Show quoted text -

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

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


[wtr-general] Re: Ruby integration with TestLink

2008-10-09 Thread KimBrown

On Oct 8, 2:46 am, Manish Sapariya <[EMAIL PROTECTED]> wrote:

> I can describe the solution that we have created in great detail
> However I am not sure, if I would be able to share the code.
>
Perhaps you would be able to post the code if you changed it to be
generic enough to remove any proprietary information?  It would still
be just as effective as an example.


Kim
--~--~-~--~~~---~--~~
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: I need help with Watir podcast

2008-10-09 Thread KimBrown



On Oct 4, 4:04 pm, "Željko Filipin" <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 3, 2008 at 11:38 PM, Tiffany Fodor <[EMAIL PROTECTED]> wrote:
> > I can help with anything you need
>
> Would you be interested in editing the audio?
>
I can also help with editing the audio. That way one person wouldn't
be responsible for doing it every time.

Kim
--~--~-~--~~~---~--~~
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 do I repeat a prtion of a script until I get a value

2009-03-24 Thread KimBrown

> I am trying to create some type of loop to reload a web page until the
> value I am looking for is present.

this works well for me:

while (not $ie.text.include? oid)
#refresh the screen
 refresh
#optional info message
puts "still waiting ..."
sleep = 30
  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 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to click on a table cell based on the text string that I know. Ex:- Wilmington.

2009-04-07 Thread KimBrown

One other way that I figure out how to select a certain cell or button
is to use a freeware capture/playback tool called Script Recorder.
I'll set it to record and click on what I want and the code will
almost always be generated (it doesn't handle java popups). Then I cut
it and paste it into what I'm working on. You can find it at
http://www.webmetrics.com/products/script_recorder.html.

Kim


On Apr 7, 1:33 pm, Tiffany Fodor  wrote:
>
> Can you get IE Dev Toolbar or Firebug output for the row or element
> you're trying to select?
>

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