
| Key: |
WTR-197
|
| Type: |
Bug
|
| Status: |
Open
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
sCrIpT mUnKeE
|
| Votes: |
2
|
| Watchers: |
2
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
IE7
Windows XP SP2 and Windows 2003 Server SP1
Watir 1.5.3 - 1.5.6
Ruby 1.8.5
IE7
Windows XP SP2 and Windows 2003 Server SP1
Watir 1.5.3 - 1.5.6
Ruby 1.8.5
|
|
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}")
|
|
Description
|
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}")
|
Show » |
Sort Order:
|
Please move this bug to the proper component section.