Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set property not typing full text in "webedit" field
#1
Solved: 11 Years, 4 Months, 2 Weeks ago
Hello,

I am facing a problem while trying to set some text in webedit field.
The value is getting entered but missing some characters.
Can anyone please help me the cause and solution.

I am using UFT 11.52 and IE 10.
My application is .NET,javascript and jquery based.

I have tried below alternatives bt does not work.

1.Wait Property
2.Sync Property
3.Browser Refresh
4.SendString
5.SendKeys
6.WebEdit.Object.value



Code:
Browser("Browser").Page("Page").Frame("Frame").WebEdit("Email").Set "hello@gmal.com"


<SAMPLE RESULT>
hllo@gl.cm
</SAMPLE RESULT>


Thanks
Reply
#2
Solved: 11 Years, 4 Months, 2 Weeks ago
To be very honest, this is really strange. However try the below and let me know if it works.

Code:
Browser("Browser").Page("Page").Frame("Frame").WebEdit("Email").Click
Browser("Browser").Page("Page").Frame("Frame").WebEdit("Email").Set "hello@gmal.com"

If this does not work, can you check for different strings and see if it does the same?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Solved: 11 Years, 4 Months, 2 Weeks ago
-----------------------------------------------------------------------------------------------
I tried the above solution but the same problem is observed again.
This is identified for all the edit fields(name,address,phonenumber,email id, etc). I tried with alphanumeric characters,numbers,letters,special characters etc. But no luck.Only some times it is working correctly, the next time you run it is not. Is this because QTP is running very fast than the application?
Reply
#4
Solved: 11 Years, 4 Months, 2 Weeks ago
Check the javascript on or before that text box if some event is getting fired on it before/after you enter the text. If yes, use QTP to fire the same event.

If that doesn't work, use keyboard and mouse to enter the value using

Code:
Setting.WebPackage("ReplayType") = 2
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#5
Solved: 11 Years, 4 Months, 2 Weeks ago
I think, keyboard and mouse was "ON" when i started executing my scripts. I gave the below code in the first line of my script and it is working fine now.

Code:
Setting.WebPackage("ReplayType") = 1

Thanks a lot.
Reply
#6
Solved: 11 Years, 4 Months, 2 Weeks ago
hmmm... good that your issue is solved but by default QTP uses events based ReplayType so it shouldn't be necessary to explicitly set it to 1.

Did you by any chance, changed it to 2 somewhere earlier in your script?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#7
Solved: 11 Years, 4 Months, 2 Weeks ago
Yeah..I think I have set Replaytype to 2 in some other scripts which I ran before this script.But does qtp set back ReplayType to event based, when we start fresh script?
Reply
#8
Solved: 11 Years, 4 Months, 2 Weeks ago
Quote:does qtp set back ReplayType to event based, when we start fresh script?
Yes.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  getting the value from the field learning 0 1,086 03-19-2019, 09:13 AM
Last Post: learning
  How to remove text in the webedit silpavinod 3 13,880 07-12-2018, 11:08 AM
Last Post: vijaychourasiya0109@gmail.com
  How to set a value if webEdit control is disabled? rohit.kum.02@gmail.com 1 3,563 12-30-2015, 12:25 PM
Last Post: vinod123
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,973 09-13-2015, 12:06 AM
Last Post: ADITI1992
  Uft 12 - Identification of Google Chrome Object's Property value as plain text teja2730 0 2,595 02-02-2015, 05:22 PM
Last Post: teja2730

Forum Jump:


Users browsing this thread: 1 Guest(s)