UFT not populating WebEdit

Question ID: 109113
1
0

When running the test, the customer number does not get populated. I’ve tried changing the ‘Set’ to "Type", however the Type method fails. Below is the code.

Browser("MyBrowser").Page("MyPage").WebEdit("Username").Set "TestUser"
Browser("MyBrowser").Page("MyPage").WebEdit("Password").SetSecure "5w2c93a514asf469ff4030a8asdfa5cf5cc8a1"
Browser("MyBrowser").Page("MyPage").WebButton("Submit").Click
Browser("MyBrowser").Page("MyPage").WebButton("WebButton").Click
Browser("MyBrowser").Page("MyPage").WebEdit("CustNumber").Set "123456789"

Marked as spam
Posted by (Questions: 328, Answers: 10)
Asked on July 29, 2019 9:00 pm
2 views
Answers
0
Private answer

Sometimes you have to activate a field before it can take input. Try doing a .Click on the WebEdit, then do your .Set to input the number.

Marked as spam
Posted by (Questions: 16, Answers: 738)
Answered on July 29, 2019 9:00 pm
That's exactly what we needed to do. Thanks.
( at July 29, 2019 9:01 pm)