Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I paste a value into a text box that I created a checkpoint for?
#1
Solved: 11 Years, 4 Months ago
Code:
Browser("Vision").Page("Vision").WebTable("#").Output CheckPoint("ClaimNum2")

I want to paste the run-time value that is contained in 'ClaimNum2' into a text box on the same page. I'm VERY new to QTP, just trying to get a grasp on the product.

Thanks!
Reply
#2
Solved: 11 Years, 4 Months ago
Hi egun,

It is as similar as setting a value in a text box from a datatable. Here in your scenario a runtime datatable is created which has the text output value, you can use "Set Datatable("column", dtglobalsheet)" to populate your text box with the runtime value.
Have a look at the following code.
--------------
'Here the output value is saved in the Global sheet of Runtime Datatable.
Code:
Browser("Vision").Page("Vision").WebTable("#").Output CheckPoint("ClaimNum2") 'The value will be present in the runtime datatable (Global sheet)
Browser("Vision").Page("Vision").WebEdit("Visiontext").Set Datatable("vision_text", dtGlobalSheet)
----------------
Hope this helps!

Thanks,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to paste file location in QTP camillelola 0 1,537 08-09-2018, 10:54 AM
Last Post: camillelola
  text checkpoint properties error alp 0 1,174 11-24-2017, 04:36 PM
Last Post: alp
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,024 06-06-2017, 11:12 AM
Last Post: workrohit08
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,894 09-13-2015, 12:06 AM
Last Post: ADITI1992
  Capture Value through Text Checkpoint and compare with datatable value hamzaz 2 4,741 03-06-2014, 12:52 AM
Last Post: mallika.g

Forum Jump:


Users browsing this thread: 1 Guest(s)