[wtr-general] Re: how watir identifies the objects

2009-04-17 Thread Prasad Vidala
Hi All,
   I have to UI testing that is bit map verification for my Project.
Can any one please let me know how can i do that using Ruby Watir, if Ruby
Watir is not good in that can any one guide me some other tools which are
good for bit map verification testing.


Thanks,
Prasad

On Thu, Apr 16, 2009 at 8:47 PM, kiran gki...@gmail.com wrote:


 Hi all,

 I have doubt regarding the identification of objects using watir.
 If we take QTP,if i want click on a link,code will be
 Browser().Page().link() or something else
 In watir some times i can access directly the link(ie.link()),some
 times i have to go with table or div or so on
 (ie.table().link() or ie.div().link()

 Please excuse me if I am wrong.


 Thanks,
 kiran.
 


--~--~-~--~~~---~--~~
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 watir identifies the objects

2009-04-17 Thread Željko Filipin
On Thu, Apr 16, 2009 at 21:47, kiran gki...@gmail.com wrote:
 I have doubt regarding the identification of objects using watir.

Before we start the conversation, just a short question. Did you read this?

http://wiki.openqa.org/display/WTR/Quick+Start
http://wiki.openqa.org/display/WTR/Tutorial

Ž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: how watir identifies the objects

2009-04-17 Thread Željko Filipin
On Fri, Apr 17, 2009 at 08:12, Prasad Vidala prasadvida...@gmail.com
wrote:
 tools which are good for bit map verification testing.

If you give me more information, maybe I will know the answer. So far, I
have no idea what you need to do.

Ž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: how watir identifies the objects

2009-04-17 Thread Chuck van der Linden

Please don't ask new questions in an unrelated thread.

Please start a new thread for this, and also provide a little bit more
information as to what it is you are trying to do, such as what you
expect for 'bit map verification' such as do the bitmaps exactly the
same, or only specific parts of the bitmaps be the same..

don't respond to this, START A NEW THREAD please since this question
is NOT related to the original subject of the thread. .

On Apr 16, 11:12 pm, Prasad Vidala prasadvida...@gmail.com wrote:
 Hi All,
    I have to UI testing that is bit map verification for my Project.
 Can any one please let me know how can i do that using Ruby Watir, if Ruby
 Watir is not good in that can any one guide me some other tools which are
 good for bit map verification testing.

 Thanks,
 Prasad



 On Thu, Apr 16, 2009 at 8:47 PM, kiran gki...@gmail.com wrote:

  Hi all,

  I have doubt regarding the identification of objects using watir.
  If we take QTP,if i want click on a link,code will be
  Browser().Page().link() or something else
  In watir some times i can access directly the link(ie.link()),some
  times i have to go with table or div or so on
  (ie.table().link() or ie.div().link()

  Please excuse me if I am wrong.

  Thanks,
  kiran.- 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: how watir identifies the objects

2009-04-17 Thread Chuck van der Linden

How you choose or in some cases need to identify an object on the page
depends a lot on how the page is composed, and what it takes to
reliably uniqely  identify the element you are trying to work with.

In general, you can often identify an object by a single uniqe
characteristic such as the ID or NAME attributes of the element.  in
that case you can generally use the form

browser.link(identifier, value).clicke.g.   browser.link
(:text, about).click

In the case of frames, because each frame acts much like its own page
with its own html source, you need to specify the frame, and then
identify the object within the frame.  this is pretty standard, and
can be a bit of a mess if there are deeply nested frames.

Sometimes in the case of objects in tables you may need to get an
object that is not unique in any other way than what table row it is
in, so you end up finding the right row by some other value in a
different column, and then addressing the link or button in that way,
by going through the table and specifying the row and column.

In other cases, you may want to address something via a div or other
container, just to be sure it's the right instance  (for example you
may have the same link in a menu, and also in a footer, and need to
test each of them, and to be sure which one you are talking to you
might address it according to the div that contains the element

Other than frames I'm not sure there is a hard-fast rule for which way
you end up working.

BTW, it is possible to create a layer of abstraction and give the
objects logical names, and then address them as such.  this can be
really useful for frequently used things that have complicated paths
or identification criteria.

The Watircraft framework for example does this via the use of 'page'
files that are used to give logical names to elements on a specific
page.  You can then address them in the script via
pagename.logicalname   e.g. you can have a script that reads like

  login_page.user_name= stan
  login_page.login_button.click

aside from creating more readable scripts this also has the advantage
of creating just one place where you need to make edits if the way the
element is identified needs to change after the devs refactor the page
or something.

On Apr 16, 12:47 pm, kiran gki...@gmail.com wrote:
 Hi all,

 I have doubt regarding the identification of objects using watir.
 If we take QTP,if i want click on a link,code will be
 Browser().Page().link() or something else
 In watir some times i can access directly the link(ie.link()),some
 times i have to go with table or div or so on
 (ie.table().link() or ie.div().link()

 Please excuse me if I am wrong.

 Thanks,
 kiran.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---