Find.ByStyle("background-position", "0px -266px")
Brought to you by:
jvmenen
There is a bug with: Find.ByStyle("background-position", "0px -266px") in 'WatiN-2.0.20.1089-net-2.0'. This code worked properly in previous version.
This bug didn't reproduced in previous version 'WatiN-2.0.10.928-net-2.0'.
Thanks in advance.
Kind regards,
Stanislav Hordiyenko
In WatiN RC1 there is a change to also support styles coming from a CSS file (instead of only supporting inline styles). This might be the cause that you do need to make a small change. Try checking "backgroundPosition" instead of "background-position"
Can't reproduce