Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to read value from WebPage?
#1
Solved: 10 Years, 10 Months, 2 Weeks ago
Hi - I am new to QTP and VB Script as well. I have recorded few user actions to create an order. At the end of my script it is creating an order. eg: An order# 123456 has been created successfully.

1) I would like to write this value (123456) to a text file (order.txt).
2. Launch Another URL to verify Order. Read the above order# from order.txt and type into a textbox..

Could someone guide me how can I acheive this?
I found this login elsewhere to write somethign to a file. I tested that it is writing "helloworld" in my test file. But I am not sure how to write a new order# into the file.
Code:
Dim fso, new_file
Set fso = createobject("scripting.filesystemobject")
Set new_file = fso.createtextfile("c:\testfile.txt", True)
new_file.writeline("hello world!")
new_file.close
Reply


Messages In This Thread
How to read value from WebPage? - by sunnyvale69 - 12-15-2009, 06:23 AM
RE: How to read value from WebPage? - by Saket - 12-15-2009, 09:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,187 07-10-2017, 04:20 PM
Last Post: rajeevk7
  webpage WinObject has same name Ananthakumar_S 0 1,589 11-30-2016, 09:48 PM
Last Post: Ananthakumar_S
  Check specific links of a webpage rocky9 1 2,572 06-11-2015, 06:23 PM
Last Post: venkatesh9032
Exclamation How to verify whether pdf is completely loaded or not in webpage nmakkena 1 2,515 08-27-2014, 04:09 PM
Last Post: vinod123
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 2,239 05-15-2014, 05:30 PM
Last Post: vishnu1067

Forum Jump:


Users browsing this thread: 1 Guest(s)