Hey, i am going to need the relevant CSS as well. i am going to try to rep your problem here: http://dogself.com/telluriumTest/test.htm
On Jun 10, 8:32 am, dominicm <[email protected]> wrote: > HI Mikhail, > > >>which class gives the background color style of #E4B8D6 > > Apologies for the confusion. Element under test has color style of > #C8D0E4 > > >>which class gives the backgorund color style of transparent > > The background color style of "transparent" is returned only in > FireFox 3. IE and Safari both return color values (although they are > different). > > The jQuery is definitely good - I use the code all of the time in all > 3 browsers to return text values from the table. > > I'm inclined to think that the problems are either jQuery or browser > related, so probably I'll have to live with them. > > >>can you show me the html of the entire table? > > <table class="runnerTable" id="runnerTable"> > <tbody class="" id="runnerTbody"> > > <tr class="cacheable runner" id="runner_9194355"> > <td class="info border"> > <div id="143183" class="hidden selectionId"><!-- This is used by 3rd > party > > apps --></div> > > <div> > <div id="9194355_chart" class="chart" style="float: left;"/> > > <a class="cacheable label bold runnerName" href="javascript:void(0)" > > id="EBR_0_9194355">Team C</a> > </div> > > </td> > > <td id="EBP_2_9194355" class="cacheable mdCell buttonWidth"> > <div class="price bold"> </div> > > </td> > <td id="EBP_1_9194355" class="cacheable mdCell buttonWidth"> > <div class="price bold"> </div> > > </td> > > <td class="cacheable b1 back buttonWidth buttonContainer" > > id="EBP_0_9194355"> > <div class="buttonAppearance"> > > <div class="price bold"> </div> > > </div> > </td> > > <td class="cacheable l1 lay layDisplay buttonWidth buttonContainer" > > id="ELP_0_9194355"> > <div class="buttonAppearance"> > > <div class="price bold"> </div> > > </div> > </td> > > <td id="ELP_1_9194355" class="cacheable mdCell layDisplay > buttonWidth"> > <div class="price bold"> </div> > > </td> > <td id="ELP_2_9194355" class="cacheable mdCell layDisplay > buttonWidth"> > <div class="price bold"> </div> > > </td> > > </tr> > > <tr class="cacheable runner" id="runner_9194356"> > <td class="info border"> > <div id="1493413" class="hidden selectionId"><!-- This is used by 3rd > party > > apps --></div> > > <div> > <div id="9194356_chart" class="chart" style="float: left;"/> > > <a class="cacheable label bold runnerName" href="javascript:void(0)" > > id="EBR_0_9194356">team d</a> > </div> > > </td> > > <td id="EBP_2_9194356" class="cacheable mdCell buttonWidth"> > <div class="price bold"> </div> > > </td> > <td id="EBP_1_9194356" class="cacheable mdCell buttonWidth"> > <div class="price bold"> </div> > > </td> > > <td class="cacheable b1 back buttonWidth buttonContainer" > > id="EBP_0_9194356"> > <div class="buttonAppearance"> > > <div class="price bold"> </div> > > </div> > </td> > > <td class="cacheable l1 lay layDisplay buttonWidth buttonContainer" > > id="ELP_0_9194356"> > <div class="buttonAppearance"> > > <div class="price bold"> </div> > > </div> > </td> > > <td id="ELP_1_9194356" class="cacheable mdCell layDisplay > buttonWidth"> > <div class="price bold"> </div> > > </td> > <td id="ELP_2_9194356" class="cacheable mdCell layDisplay > buttonWidth"> > <div class="price bold"> </div> > > </td> > > </tr> > > <tr class="cacheable runner" id="runner_9194357"> > <td class="info border"> > <div id="58805" class="hidden selectionId"><!-- This is used by 3rd > party > > apps --></div> > > <div> > <div id="9194357_chart" class="chart" style="float: left;"/> > > <a class="cacheable label bold runnerName" href="javascript:void(0)" > > id="EBR_0_9194357">The Draw</a> > </div> > > </td> > > <td id="EBP_2_9194357" class="cacheable mdCell buttonWidth"> > <div class="price bold"> </div> > > </td> > <td id="EBP_1_9194357" class="cacheable mdCell buttonWidth"> > <div class="price bold"> </div> > > </td> > > <td class="cacheable b1 back buttonWidth buttonContainer" > > id="EBP_0_9194357"> > <div class="buttonAppearance"> > > <div class="price bold"> </div> > > </div> > </td> > > <td class="cacheable l1 lay layDisplay buttonWidth buttonContainer" > > id="ELP_0_9194357"> > <div class="buttonAppearance"> > > <div class="price bold"> </div> > > </div> > </td> > > <td id="ELP_1_9194357" class="cacheable mdCell layDisplay > buttonWidth"> > <div class="price bold"> </div> > > </td> > <td id="ELP_2_9194357" class="cacheable mdCell layDisplay > buttonWidth"> > <div class="price bold"> </div> > > </td> > > </tr> > > </tbody> > </table> > > On Jun 8, 6:30 pm, Mikhail Koryak <[email protected]> wrote: > > > 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- 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 -~----------~----~----~----~------~----~------~--~---
