set property not typing full text in "webedit" field - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: set property not typing full text in "webedit" field (/Thread-set-property-not-typing-full-text-in-webedit-field) |
set property not typing full text in "webedit" field - auto_tester - 08-06-2013 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 RE: set property not typing full text in "webedit" field - basanth27 - 08-06-2013 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 If this does not work, can you check for different strings and see if it does the same? RE: set property not typing full text in "webedit" field - auto_tester - 08-06-2013 ----------------------------------------------------------------------------------------------- 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? RE: set property not typing full text in "webedit" field - Ankur - 08-07-2013 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 RE: set property not typing full text in "webedit" field - auto_tester - 08-08-2013 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. RE: set property not typing full text in "webedit" field - Ankur - 08-08-2013 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? RE: set property not typing full text in "webedit" field - auto_tester - 08-08-2013 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? RE: set property not typing full text in "webedit" field - Ankur - 08-09-2013 Quote:does qtp set back ReplayType to event based, when we start fresh script?Yes. |