[ http://jira.openqa.org/browse/WTR-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Charley Baker updated WTR-197: ------------------------------ Fix Version/s: (was: 1.6.7) Soon > IE7 - focus goes to address bar after certain actions, and .focus doesn't > work when focus is in address bar > ----------------------------------------------------------------------------------------------------------- > > Key: WTR-197 > URL: http://jira.openqa.org/browse/WTR-197 > Project: Watir > Issue Type: Bug > Components: Inputs > Affects Versions: 1.5.3 > Environment: IE7 > Windows XP SP2 and Windows 2003 Server SP1 > Watir 1.5.3 - 1.5.6 > Ruby 1.8.5 > Reporter: sCrIpT mUnKeE > Priority: Major > Fix For: Soon > > > In the example below I have demonstrated that when > you use the focus method on a text_field in IE7, the actually browser > focus is not set. The field does not receive the inputed text for > "send_keys" and the "Enter" key is not registered with the "search" > button. > I first noticed this issue with the web application I am testing. Our > web application contains iFrame, but I don't think this is an issue, > and I have noticed that when the page starts the address bar of IE 7 > never looses focus. It start active not matter what interactions I do > with the browser. > IE 7 Focus Example: > # starting the test > require 'watir' > ie = Watir::IE.start() > ie.goto("http://flickr.com") > # focusing the text field, because the web site does not set focus > automatically > ie.div(:id, 'featured-search').text_field(:index, 1).focus() > # adding text to the search field > ie.send_keys("{self}") > #ie.div(:id, 'featured-search').text_field(:index, 1).set("self") # > This also failes > # sending an Enter key to execute the search > ie.send_keys("{ENTER}") -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Wtr-development mailing list Wtr-development@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-development