Need WebEdit object to retain focus after setting value with UFT
Question ID: 108303
1
0

Our website has a WebEdit that, after entering data in it, does a seach on that data. After entering the data, I need to wait a few seconds while the system is searching for the information.

If I change focus from the WebEdit before the system finds the information, it deletes the input and cancels the search.

This is how the WebEdit is supposed to work. If I use .set "My Data", it does not work. So I need to figure out a way in UFT to keep the focus in the WebEdit. I tried using a Wait but that didn’t work. 🙁

Marked as spam
Posted by (Questions: 386, Answers: 64)
Asked on April 27, 2018 7:33 pm
493 views
Answers (1)
1
Private answer

Try changing the Replay Type from the default of Event to Mouse and see if that helps

ReplayType is a UFT Web Add-in setting. It can be used to change how the events are replayed on the browser. There are two modes of ReplayType:

- Event (1) - Replay of events using the Browser methods (something similar to DOM).
- Mouse (2) - Replay of events using the mouse and keyboard simulation

Sample Code:

Setting.WebPackage(''ReplayType'') = 2 'Mouse
[your code goes here]
Setting.WebPackage(''ReplayType'') = 1 'Event (Default)
Micro Focus has documented this in [KM178132][1]

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

Marked as spam
Posted by (Questions: 16, Answers: 807)
Answered on April 27, 2018 7:40 pm
0
This worked great, thanks!!
( at April 27, 2018 7:41 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top