[Celerity-users] Query native javascript functions on an HTMLElement?
Jari Bakken
jari.bakken at gmail.com
Wed Sep 2 17:31:32 EDT 2009
On Wed, Sep 2, 2009 at 8:59 PM, chao Lam<chaolam at gmail.com> wrote:
> Hi,
>
> However, in Celerity
>
> browser.getElementByXPath("//div[@id='x']").javascript_object.style.backgroundImage
>
> results in an error (backgroundImage method not found)
>
Different ways of accomplishing what you want:
browser.div(:id, 'x').style # although this includes "background: " as well
browser.div(:id, 'x').javascript_object.style.jsx_get_background
The latest code on GitHub has a fix that will let you do:
browser.div(:id, 'x').javascript_object.style.background
More information about the Celerity-users
mailing list