I've taken a closer look at this and am thinking that the problem may be quite specific to the "background-color" attribute. I've tested some other attributes that differ between the parent and child nodes. Worriyingly the results differ from browser to browser
Attributes tested: Value(FireBug) FF3 IE7 Safari background-color #C8D0E4 transparent #c8d0e4 rgb(200,208,228) display table-cell table-cell block table-cell pointer auto "" null null border-top-color #666666 rgb (128,128,128) #666 rgb(102,102,102) So looks like only FF3 has a problem with "background-color" and only IE7 has a problem with "display". Also appears that anything to do with colours is very browser- specific. On Jun 8, 4:49 pm, 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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
