Hi,
We have finally got it. We used html to get the source code and from that we could access the background color. Thanks......
 
Chaya


Jeff Wood <[EMAIL PROTECTED]> wrote:
Since you have the code for the table and/or table cell, the method is
simply ".html"

$ie.frame( :index, 1 ).table( :index, 2 ).html

all done.

you can then use a regular _expression_ on the returned string.

j.

On 10/18/05, chaya shetty <[EMAIL PROTECTED]>wrote:
> Can getHTML be used for a table or tablecell?
> When I tried
> tab=$ie.frame(:index,1).table(:index,2).getHTML
> puts tab it gave the following exception:
> undefined method `getHTML' for # (NoMethodError).
>
>
> Amita Shetty <[EMAIL PROTECTED]>wrote:
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] on behalf of amol
> deshpande
> Sent: Wed 10/12/2005 1:49 AM
> To: [email protected]
> Cc:
> Subject: Re: [Wtr-genera! l] How to get background color source for
> atablecell?
>
>
>
> Hi,
> in the watir_bonus\unitTest\table_test.rb they have
> highlighted the colors of the cells/rows.
> If you have not seen that example ..check to see if it
> helps
> AD
>
> --- Amita Shetty wrote:
>
> > I tried getHTML for table cell(Table cell is
> > dynamic)
> >
> ie.frame(:index,1).table(:index,table_index)[2][2].getHTML
> > But I am getting the following error message:
> > "undefined method `getHTML' for
> > # (NoMethodError)"
> >
> > How else can I do it?
> >
> > Thanks,
> > Amitha
> &! gt;
> >
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] on behalf
> > of Jeff Wood
> > Sent: Fri 10/7/2005 12:56 PM
> > T! o: [email protected]
> > Cc:
> > Subject: Re: [Wtr-general] How to get background
> > color source for a tablecell?
> >
> >
> > Although I don't have the time to work the example
> > tonight, the new xpath & integration with REXML
> > should make that easy to get.
> >
> > j.
> >
> >
> > On 10/6/05, Amita Shetty
> > wrote:
> >
> > Hi,
> > How to get background color source for a table
> > cell?
> > I want to write a test case that verifies the
> > color of the table cell as the color of the cell
> > varies with cell data.
> >
> >
> > HTML for the tablecell is as below:
> >
> >
> > style="width:! 60px; border:#000000 1pt solid" title=
> > "TITLE"> > color="#FFFFFF">Critical
> 8
> >
> > Thanks,
> > Amitha
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Wtr-general mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
> >
> >
> >
> >
> > --
> > "http://ruby-lang.org -- do you ruby?"
> >
> > Jeff Wood
> >
> > > _______________________________________________
> > Wtr-general mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
>
>
> No Body Has ever Collided With The Sky...So Sky Is The Limit!
>
>
>
> __________________________________
> Start your day with Yahoo! - Make it your home page!
> http://www.yahoo.com/r/hs
> _______________________________________________
> Wtr-gen! eral mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
>
>
> ________________________________
> Yahoo! India Matrimony: Find your partner now.
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
>
>


--
"http://ruby-lang.org -- do you ruby?"

Jeff Wood

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


Yahoo! India Matrimony: Find your partner now.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to