[Wtr-general] Setting focus in a frame in IE7

Trevor Mason forum-watir-users at openqa.org
Fri May 4 11:48:00 EDT 2007


I have a test that used to work on IE6(WIN2k), but does not with IE7(WINXP)
I am using send_keys to send 4 chars to a text field that has a maximum length of 3, then checking there are only 3 chars

In IE7, the focus does not move from the IE address bar, and I get xxxx placed here.
If I use IRB and manually click somewhere within the frame before running these commands, it works!

	$ie.frame("mainFrame").frame("centralFrame").text_field(:name, 'privateDataDescriptor').focus
	$ie.send_keys("xxxx")

Does anyone have any ideas?

Trevor


More information about the Wtr-general mailing list