Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sometimes the QTP do not fill the WebEdit field.
#1
Solved: 11 Years, 3 Months ago
Hi,

I have a Website, in C#.net, and I usually test it using the QTP tool. This works fine, but there are 2 WebEdit fields that sometimes simply do not get filled by QTP.
The QTP focus on the field, but do not obey the command to fill it.
Here is the the command block:

Code:
Browser("title:=Page.*").Page("title:=Page.*").WebEdit("html id:=txtDe").Click
Browser("title:=Page.*").Page("title:=Page.*").WebEdit("html id:=txtDe").Set X 'X is a variable
Browser("title:=Page.*").Page("title:=Page.*").WebEdit("html id:=txtDe").Click

I use the command "click", because there is a command that it's necessary to click on the field to auto-complete what I was typing.

Is there anybody able to help me with this problem ?

Sometimes the field gets filled, and sometimes not. It`s really weird.

Thank you very much.
Reply
#2
Solved: 11 Years, 3 Months ago
Try in this way

Code:
Set fill = Description.Create
fill ("type").value = "text"
fill ("html id").value = "txtDe"
Browser("title:=Page.*").Page("title:=Page.*").WebEdit(fill).Set X
Reply
#3
Solved: 11 Years, 3 Months ago
Thank you very much, but it doesn't work either. =/
Reply
#4
Solved: 11 Years, 3 Months ago
I'm only guessing here, try using the name property instead. I'm assuming you did a view source on the page and verified the exact ID. My developers like to use .NET forms which can make some truly ugly html tags...especially if they use repeaters and grids.

Hope this helps.
Reply
#5
Solved: 11 Years, 3 Months ago
Are you getting any error??? If so send me that error.
Which QTP version u r using??
Reply
#6
Solved: 11 Years, 3 Months ago
As I can see, it might be an error on my system development. The developers will change the KeyDown. I will wait for the change and test again.

Thank you all very much.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP identifying WebList as WebEdit and an Element passion77 3 8,386 01-27-2014, 10:21 PM
Last Post: supputuri
Exclamation How to enter text in webedit field..... Unleash Rajesh 6 22,984 09-01-2011, 02:07 PM
Last Post: SQT
  QTP: WebEdit : How to check if values in list are disabled. katdean 4 8,472 07-27-2011, 08:52 AM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)