For getEval try using:
string javascript="
var a = window.document.getElementById('errorDiv');
var t = window.document.defaultView.getComputedStyle(a,null).color;"
Otherwise you could use:
string javascript="
var a = document.getElementById('errorDiv');
var t = document.defaultView.getComputedStyle(a,null).color;
alert(t)"
runScript(javascript)
String css = getAlert()
When working it may be a good idea to put this in a user extension.
On Dec 10, 7:48 am, mugua <[email protected]> wrote:
> thanks for your quick response,it works for you because you have a
> diffrent way to load html and css.
> It seems we are using the getCss same way. but it dose not work.
> Now I am trying to use javascript instead ,but another question comes.
>
> When I am using codes below:
> string javascript="var a = document.getElementById('errorDiv');var
> t = document.defaultView.getComputedStyle(a,null).color;document.write
> (t)"
> runScript(javascript)
>
> in Firefox browser : rgb(255,0,0) shows up as expected
>
> while I change to
> string javascript="var a = document.getElementById('errorDiv');var t =
> document.defaultView.getComputedStyle(a,null).color;"
> String css = getEval(javascript) to get the return value ,error shows
> up
>
> getEval is working well in my other cases ,but for this one ,it
> doesn't. Could you help with it?
--
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.