onkeyup event does not work for IE9 on Windows 7 but works for IE8 QTP/UFT

  • Questions
  • onkeyup event does not work for IE9 on Windows 7 but works for IE8 QTP/UFT
Question ID: 106190
0
0

We have a function, which will set the textfield a value, then enable the button next to it with "onkeyup", however, with IE9, it does not work any more, tried solution like set the settings for click as "mouse" instead of "event" still not working

Marked as spam
Posted by (Questions: 45, Answers: 0)
Asked on July 21, 2015 5:14 pm
5 views
Answers (1)
0
Private answer

I had the same problem before and I added following lines of code (See below) before entering text and fixed issue.

' Get the current replay mode
orig = Setting.webpackage(''ReplayType'')
' Set QuickTest Professional to replay using mouse operations
Setting.webpackage(''ReplayType'') = 2 'Mouse
Browser(''Browser_2'').Page(''Page'').WebButton(''OK'').Click
' Set the replay mode back to the original mode
Setting.webpackage(''ReplayType'') = orig '1==Event, 2==Mouse

See HP document [KM178132][1] for more details.

[1]: https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/KM178132

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on July 21, 2015 5:19 pm