UFT not populating WebEdit
Category:
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: 386, Answers: 64)
Asked on July 29, 2019 9:00 pm
37 views
Answers (1)
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: 807)
Answered on July 29, 2019 9:00 pm
0
That's exactly what we needed to do. Thanks.
( at July 29, 2019 9:01 pm)
EyeOnTesting

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

X
Scroll to Top