Good catch. The first one is correct.

The original APIs were like the second one, but were changed to the first
format so
that Selenium APIs can also benefit from the UI module caching. That is to
say,
Selenium API calls can also use UI module caching.

Later on, we like to change the new Engine APIs to

TelluriumApi.prototype.getCSS = function(uid, cssName)


The major difference is that the uid can get back the Javascript UI object,
instead of
DOM reference. Using the Javascript UI object, we can move some core
functionalities
to the Engine side. For example, getTableCellText will be call the uid
directly and on
the Engine side, first find the UI object, then call the getTableCellText
method on the
UI object.

However, all these changes are behind the scene and should not affect users'
test cases
because we keep the DslContext intact unless users call the native API
directly.

Thanks,

Jian

On Tue, Jan 26, 2010 at 1:48 PM, David Liu <[email protected]> wrote:

> Hi,
>
> I looked at the new Tellurium Engine apis from the 0.7.0 wiki page at
>
> http://code.google.com/p/aost/wiki/Tellurium070Update#Tellurium_New_APIs
>
> and they seems to be inconsistent.
>
> In section "tellurium new apis", the getCSS is defined as
>
> TelluriumApi.prototype.getCSS = function(locator, cssName)
>
> But in the later section, it is shown as
>
> TelluriumApi.prototype.getCSS = function(element, cssName);
>
> Which one is correct?
>
>
>
>  --
> 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]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>

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