[wtr-general] Re: element focus status

2009-09-11 Thread manoj

Hi Daary,

The flash will just flash off the element. But i need to verify that
the perticular element has been flashed/focused.

Thanks
Manoj

On Sep 11, 5:00 am, Darryl  Brown d-l-br...@roadrunner.com wrote:
 Hi Manoj,

 You can use .flash in place of the focus

 Darryl

 On Sep 10, 9:39 am, manoj test...@gmail.com wrote:

  Hi,

  I am trying to automate the tab navigation in web page. I can focus on
  the element by element.focus(). But how can i verify that that element
  has been focused?

  Please let me know ASAP.

  Thanks
  Manoj
--~--~-~--~~~---~--~~
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: element focus status

2009-09-11 Thread Darryl Brown

Hello Manoj,

If you can flash an object, then you should be able to focus the
object  There is no visual indication that the object has been focused
unless it is somewhere of the screen. I use it all of the time to
show
a certain part of page when the page  larger than the screen size
during script development.


Regards,
Darryl

On Sep 11, 2:26 am, manoj test...@gmail.com wrote:
 Hi Daary,

 The flash will just flash off the element. But i need to verify that
 the perticular element has been flashed/focused.

 Thanks
 Manoj

 On Sep 11, 5:00 am, Darryl  Brown d-l-br...@roadrunner.com wrote:

  Hi Manoj,

  You can use .flash in place of the focus

  Darryl

  On Sep 10, 9:39 am, manoj test...@gmail.com wrote:

   Hi,

   I am trying to automate the tab navigation in web page. I can focus on
   the element by element.focus(). But how can i verify that that element
   has been focused?

   Please let me know ASAP.

   Thanks
   Manoj
--~--~-~--~~~---~--~~
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: element focus status

2009-09-11 Thread manoj

Hi Darry

Thanks for your input. I am able to focus on the object. But my need
is to verify that that particular element has been focused. So is that
any method which return the status of the element which is focused(say
true) and for other element it should return false?

Thanks
Manoj

On Sep 11, 4:43 pm, Darryl  Brown d-l-br...@roadrunner.com wrote:
 Hello Manoj,

 If you can flash an object, then you should be able to focus the
 object  There is no visual indication that the object has been focused
 unless it is somewhere of the screen. I use it all of the time to
 show
 a certain part of page when the page  larger than the screen size
 during script development.

 Regards,
 Darryl

 On Sep 11, 2:26 am, manoj test...@gmail.com wrote:

  Hi Daary,

  The flash will just flash off the element. But i need to verify that
  the perticular element has been flashed/focused.

  Thanks
  Manoj

  On Sep 11, 5:00 am, Darryl  Brown d-l-br...@roadrunner.com wrote:

   Hi Manoj,

   You can use .flash in place of the focus

   Darryl

   On Sep 10, 9:39 am, manoj test...@gmail.com wrote:

Hi,

I am trying to automate the tab navigation in web page. I can focus on
the element by element.focus(). But how can i verify that that element
has been focused?

Please let me know ASAP.

Thanks
Manoj
--~--~-~--~~~---~--~~
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: element focus status

2009-09-11 Thread Darryl Brown

Hello Manoj,

For what you're trying do just put.exist?

in place of .focus. It will return true or false


Example:
$ie.frame(:index, 3).frame(:index, 3).button(:id, 'editButton').exist?


Darryl

On Sep 11, 7:57 am, manoj test...@gmail.com wrote:
 Hi Darry

 Thanks for your input. I am able to focus on the object. But my need
 is to verify that that particular element has been focused. So is that
 any method which return the status of the element which is focused(say
 true) and for other element it should return false?

 Thanks
 Manoj

 On Sep 11, 4:43 pm, Darryl  Brown d-l-br...@roadrunner.com wrote:

  Hello Manoj,

  If you can flash an object, then you should be able to focus the
  object  There is no visual indication that the object has been focused
  unless it is somewhere of the screen. I use it all of the time to
  show
  a certain part of page when the page  larger than the screen size
  during script development.

  Regards,
  Darryl

  On Sep 11, 2:26 am, manoj test...@gmail.com wrote:

   Hi Daary,

   The flash will just flash off the element. But i need to verify that
   the perticular element has been flashed/focused.

   Thanks
   Manoj

   On Sep 11, 5:00 am, Darryl  Brown d-l-br...@roadrunner.com wrote:

Hi Manoj,

You can use .flash in place of the focus

Darryl

On Sep 10, 9:39 am, manoj test...@gmail.com wrote:

 Hi,

 I am trying to automate the tab navigation in web page. I can focus on
 the element by element.focus(). But how can i verify that that element
 has been focused?

 Please let me know ASAP.

 Thanks
 Manoj
--~--~-~--~~~---~--~~
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: element focus status

2009-09-11 Thread Mark Anderson

Manoj,

Have you looked at the show_active() on Watir::IE?
(http://wtr.rubyforge.org/rdoc/classes/Watir/IE.html#M000267)
It returns a string that you could easily parse.

Looking at the source
(http://wtr.rubyforge.org/rdoc/classes/Watir/IE.src/M000267.html), it looks
like it uses document.activeElement to get the object that has focus.  I
don't know if you would be able to use that to compare to the object that
you set focus on or not.

Hope this helps,
/\/\ark

 -Original Message-
 From: watir-general@googlegroups.com [mailto:watir-
 gene...@googlegroups.com] On Behalf Of Darryl Brown
 Sent: Friday, September 11, 2009 1:04 PM
 To: Watir General
 Subject: [wtr-general] Re: element focus status
 
 
 Hello Manoj,
 
 For what you're trying do just put.exist?
 
 in place of .focus. It will return true or false
 
 
 Example:
 $ie.frame(:index, 3).frame(:index, 3).button(:id, 'editButton').exist?
 
 
 Darryl
 
 On Sep 11, 7:57 am, manoj test...@gmail.com wrote:
  Hi Darry
 
  Thanks for your input. I am able to focus on the object. But my need
  is to verify that that particular element has been focused. So is that
  any method which return the status of the element which is focused(say
  true) and for other element it should return false?
 
  Thanks
  Manoj
 
  On Sep 11, 4:43 pm, Darryl  Brown d-l-br...@roadrunner.com wrote:
 
   Hello Manoj,
 
   If you can flash an object, then you should be able to focus the
   object  There is no visual indication that the object has been focused
   unless it is somewhere of the screen. I use it all of the time to
   show
   a certain part of page when the page  larger than the screen size
   during script development.
 
   Regards,
   Darryl
 
   On Sep 11, 2:26 am, manoj test...@gmail.com wrote:
 
Hi Daary,
 
The flash will just flash off the element. But i need to verify that
the perticular element has been flashed/focused.
 
Thanks
Manoj
 
On Sep 11, 5:00 am, Darryl  Brown d-l-br...@roadrunner.com wrote:
 
 Hi Manoj,
 
 You can use .flash in place of the focus
 
 Darryl
 
 On Sep 10, 9:39 am, manoj test...@gmail.com wrote:
 
  Hi,
 
  I am trying to automate the tab navigation in web page. I can
 focus on
  the element by element.focus(). But how can i verify that that
 element
  has been focused?
 
  Please let me know ASAP.
 
  Thanks
  Manoj
  
 
 
 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 4417 (20090911) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 4417 (20090911) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.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: element focus status

2009-09-10 Thread Darryl Brown

Hi Manoj,

You can use .flash in place of the focus



Darryl

On Sep 10, 9:39 am, manoj test...@gmail.com wrote:
 Hi,

 I am trying to automate the tab navigation in web page. I can focus on
 the element by element.focus(). But how can i verify that that element
 has been focused?

 Please let me know ASAP.

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