Micro Focus QTP (UFT) Forums
Set method not working for web number object - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Set method not working for web number object (/Thread-Set-method-not-working-for-web-number-object)



Set method not working for web number object - Qtp_bunny - 06-07-2018

My developer is rewriting javascript application to Angular using ionic framework .I am trying to update existing object repository.I am seeing that set method is truncating last digit and setting the input value.


say for example I have used Browser().Page().Webnumber().Set “2000”


it’s setting 200 instead of 2000


please help me


RE: Set method not working for web number object - Ankur - 06-14-2018

This is a common issue. 

By default, UFT replay type uses events, change that to mouse operations. 

Just before the .Set statement Use


Code:
Setting.WebPackage("ReplayType") = 2 ' This will simulate actual Mouse and keyboard


After the .Set statement change it back to events type



Code:
Setting.WebPackage("ReplayType") = 1 ' This is the default setting (events)