Hi, Can you tell me the following things: which class gives the background color style of #E4B8D6 which class gives the backgorund color style of transparent can you show me the html of the entire table?
also, are there any other tables on the page, could this query be selecting another element? the jquery looks good to me, i dont think it should be selecting the wrong element. I can test it out some more if i have the actual html you are using. On Jun 8, 11:49 am, Jian Fang <[email protected]> wrote: > The getCSS custom method is as follows, > > Selenium.prototype.getCSS = function(locator, cssName) { > var out = []; > var $e = teJQuery(this.browserbot.findElement(locator)); > $e.each(function() { > out.push(teJQuery(this).css(cssName)); > }); > return JSON.stringify(out); > > }; > > Mikhail, please take a look to see if anything is wrong here. > > Thanks, > > Jian > > On Mon, Jun 8, 2009 at 11:10 AM, dominicm <[email protected]>wrote: > > > > > HI All, > > > I've been trying out the getCSS function and have found the following: > > > UI module > > Div(uid:'lay1', clocator:[id:'*ELP_0',tag:'td']) > > > HTML Code > > <td id="ELP_0_32664" class="cacheable l1 lay layDisplay buttonWidth > > buttonContainer pressedLay"> > > <div class="buttonAppearance"> > > <div class="price bold"> </div> > > </div> > > </td> > > > the parent "td" element has a background-color style of "#E4B8D6" > > whereas for the child elements it is "transparent". It seems that > > running getCSS on the "td" element locator returns "transparent" > > instead of the color value. > > > Here is the log > > INFO - Command request: getCSS[jquery=#runnerTbody > tr:eq(0) td > > [id*=ELP_0], background-color] on session > > 6c500cbc935d4f77881a77dc9b38854d > > 15:50:23.309 INFO - Got result: OK,["transparent"] on session > > 6c500cbc935d4f77881a77dc9b38854d > > > Any ideas why this may be happening? > > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en -~----------~----~----~----~------~----~------~--~---
