Hi All,

Just wanted to raise a style() method question here. Apologize if it was
already discussed before.

Getting a style element works differently with Watir and watir-webdriver.

Watir:
element.style.backgroundImage

Watir-WebDriver:
element.style("background-image")
Watir is giving you direct access to a COM object, which is a leaky
abstraction and should not be part of the Watir API. Instead, we should
decide on a common API that can be implemented without leaking
implementation details.
The issue and solution proposed by Jari are described in more details here:
https://github.com/jarib/watir-webdriver/issues/closed#issue/11

Thank you,
Aliaksandr Ikhelis
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to