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
-~----------~----~----~----~------~----~------~--~---

Reply via email to