Hi
 
I asked the Dev. team about the ID, they confirmed there are not generating any id
 
Thanks
Meghanath
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Sergio Pinon
Sent: Thursday, January 26, 2006 4:12 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Tab Click

Did you try the solution that I mentioned. Give the td an id attribute and then you are golden. You shouldn’t have any problems.

 

Sergio

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chintakrindi Meghanath
Sent: Thursday, January 26, 2006 12:00 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Tab Click

 

Hi

 

I stepped through the IRB and getting the following error exception. I used link, button , image etc

 

Watir::Exception::UnknownObjectException: Unable to locate object, using value a
nd (?-mix:Contents)

 

When I used "div", its not throwing any message, but no object is returned.

 

Thanks

Meghanath

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Sergio Pinon
Sent: Thursday, January 26, 2006 2:03 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Tab Click

Some thoughts:

 

Can you give the td that contains the text you want clicked an ID attribute. If so then you could try accessing the td directly and calling the click method on it. This can be done with _javascript_ using the following code.

 

ie_browser.getDocument().getElementById(“[table cell id]”).click()

 

That should work if you can do something like that.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chintakrindi Meghanath
Sent: Thursday, January 26, 2006 10:27 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Tab Click

 

HI All

 

Can anyone , give  solution, I am struck at this point .

 

Thanks

Meghanath

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Chintakrindi Meghanath
Sent: Thursday, January 26, 2006 9:58 AM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Tab Click

Hi

 

I tried with this options also , but not working.

It is not throwing any error, but its not clicking that 'Tab'

 

Thanks

Meghanath

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Bret Pettichord
Sent: Wednesday, January 25, 2006 4:09 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Tab Click

How 'bout this:

  ie.div(:id, 'LineTab').cell(:text, 'Contents').click

(If this doesn't work, please describe what it actually does. Error?)

Bret

On 1/25/06, Chintakrindi Meghanath <[EMAIL PROTECTED]> wrote:

Hi

 

I aleady tried with that option , but its not working

 

Thanks

Meghanath

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bret Pettichord
Sent: Wednesday, January 25, 2006 2:10 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Tab Click

ie.div(:id, 'LineTab').click

On 1/25/06, Chintakrindi Meghanath < [EMAIL PROTECTED] > wrote:

Hi All

 

My web application contains two tabs in one of the transaction "Detail" and "Contents"

After entering the data in the Detail page, using will be saving that record and clicks on "Contents".

I am trying to make a script for that

Can anyone help me out, how to click on "Contents".

I tried with most of the objects, but its not going through.

The following is the source code

 

 

 

<div id='DetailTab' style='position:absolute;  left:0px; top:12px; width:595px; height:30px; z-index:1;align=left;visibility:hidden;'>
<table width='595' cellspacing='0' cellpadding='0' border=0 align='center'>
<tr><td width='10'><img name='a' src='' width='10' height='20' border='0'/></td>
<td width='81' background=''  class='blktext1' align='center' valign='bottom'>Detail<br><img name='a' src='' width='1' height='3' border='0'/></td>
<td width='81' background=''  class='blktext1' align='center' valign='bottom' style='cursor:hand'>Contents<br><img name='a' src='' width='1' height='3' border='0'/></td>
<td width='423'><img name='a' src='' width='423' height='20' border='0'/></td>
</tr>
</table>
</div>
<div id='LineTab' style='position:absolute;  left:0px; top:12px; width:595px; height:30px; z-index:1;align=left;visibility:hidden;'>
<table width='595' cellspacing='0' cellpadding='0' border=0 align='center'>
<tr><td width='10'><img name='a' src='' width='10' height='20' border='0'/></td>
<td width='81' background=''  class='blktext1' align='center' valign='bottom' style='cursor:hand'>Detail<br><img name='a' src='' width='1' height='3' border='0'/></td>
<td width='81' background=''  class='blktext1' align='center' valign='bottom'>Contents<br><img name='a' src='' width='1' height='3' border='0'/></td>
<td width='423'><img name='a' src='' width='423' height='20' border='0'/></td>
</tr>
</table>
</div>

 

Thanks

Meghanath


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

 


_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

 

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to