There's nothing special about readonly? when it comes to Watir's code.
Essentially this code is executed:
ole_object.invoke('#{ole_method_name}')Where ole_method_name is "readOnly". I'm not sure what to think about it returning WIN32OLE object instead of true/false on older IE-s.... Jarmo On Nov 10, 2:01 am, Chuck van der Linden <[email protected]> wrote: > On Nov 9, 12:18 am, Željko Filipin <[email protected]> > wrote: > > > On Wed, Nov 9, 2011 at 2:26 AM, Chuck van der Linden <[email protected]> > > wrote: > > > > I'm running some scripts that are currently implemented in watir 1.9.1 > > > Did you try the same with the latest version of watir gem? How does > > watir-webdriver gem behaves? > > > Željko > > Watir 2.0.3 and 2.0.4 both fail in exactly the same way > > on an XP system against IE7, there's no issue. > > Also when I do a puts $ie.text_field(:id, 'first_name') > > the value next to 'read only:' is just a simple 'false' on the XPWin7 > system instead of the weird win32ole stuff. > > Using watir-webdriver on the Win7/IE9 system works for that field, > however I'm totally blocked from using watir-webdriver for IE testing > because I am unable to get past the IE 'navigation blocked' screen > when using webdriver as it is unable to find ANYTHING in the dom on > that screen. pretty much all methods aside from .html and .title, > give errors about being unable to locate the element, making it > impossible to click the continue link. (easily done in vanilla > Watir) . That's of course a separate issue, and there's already a > ticket open for it on watir-webdriver's github page. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
