[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 kimbro...@yahoo.com 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: new page has no focus

2010-07-26 Thread Tiffany Fodor
Hi Kim!

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.

Have you tried using AutoIt send_keys to send a tab to put the focus
on an element?

$ie.send_keys({TAB})

Hope this helps!

-Tiffany

On Jul 26, 1:29 pm, KimBrown kimbro...@yahoo.com 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

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