[wtr-general] Re: Automating the object with in TD tag

2011-01-19 Thread Chuck van der Linden
if it's an image and it's clickable, you can often access it as a
button element.

That or look at what element is wrapped around the image.

As with almost all questions here, you are going to get the best
response if you

1) show us relevent page source.
2) show us the code you have tried so far
3) include an error messages you may have gotten as a result.

On Jan 13, 12:59 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Thu, Jan 13, 2011 at 8:34 AM, sweet flower ure...@gmail.com wrote:
  I tried with SRC also... it is not working.
  any other way??

 Sure, a lot of other ways:

 http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watirhttp://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+El...

 Post image HTML and we will be able to help.

 Željko

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Automating the object with in TD tag

2011-01-12 Thread orde
 I'm not sure what your question is?

+1.

td tags can be accessed via the .cell method:
http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Container.html#M000298

orde

On Jan 12, 9:24 am, Basim Baassiri ba...@baassiri.ca wrote:
 I'm not sure what your question is?







 On Wed, Jan 12, 2011 at 10:28 AM, Sanu ure...@gmail.com wrote:
  Hi,

  I have an object with TD tag with out any object type specified.
  That is actually a tag in the application.

  please find the HTML code below

  TR
  TD class=styleTabUnSelected id=S3Role
       #text
  SCRIPT

  and goes like this

  if i spy the tab i am getting the below Attributs,
  Name                               Value
  align                                  left
  background-image(css)       url(../images/AsTabBackMiddle.gif)
  class                                 styleTabUnSelected=
  color(css)                           #00
  cursor(css)                          pointer
  height                                 24
  id                                       S3Role
  onclick                               JavaScript:pushTab('S3Role');
  onmouseout                       JavaScript:mouseOutTab('S3Role')
  onmouseover                      JavaScript:mouseOverTab('S3Role')
  style                                  BACKGROUND-IMAGE: url(../images/
  AsTabBackMiddle.gif); CURSOR: pointer; COLOR: #00

  I am very new to Ruby kindly provide your ideas.

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

  watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
  watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0Awatir-general+unsubscr...

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Automating the object with in TD tag

2011-01-12 Thread Adam Reed
I think what you're looking for is a way to use Watir to attach to or
investigate that TD element.  You can find an exact example of that in
the Watir Wiki using XPath:

http://wiki.openqa.org/display/WTR/XPath
puts ie.cell(:xpath, //i...@src='3.jpg']/../).text

Adam

On Jan 12, 9:28 am, Sanu ure...@gmail.com wrote:
 Hi,

 I have an object with TD tag with out any object type specified.
 That is actually a tag in the application.

 please find the HTML code below

 TR
 TD class=styleTabUnSelected id=S3Role
       #text
 SCRIPT

 and goes like this

 if i spy the tab i am getting the below Attributs,
 Name                               Value
 align                                  left
 background-image(css)       url(../images/AsTabBackMiddle.gif)
 class                                 styleTabUnSelected=
 color(css)                           #00
 cursor(css)                          pointer
 height                                 24
 id                                       S3Role
 onclick                               JavaScript:pushTab('S3Role');
 onmouseout                       JavaScript:mouseOutTab('S3Role')
 onmouseover                      JavaScript:mouseOverTab('S3Role')
 style                                  BACKGROUND-IMAGE: url(../images/
 AsTabBackMiddle.gif); CURSOR: pointer; COLOR: #00

 I am very new to Ruby kindly provide your ideas.

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com