how can I read text in browser and export the same into text
file?

Answer Posted / shekhar

''Take a value from application and copy it into the text
and excel file.


a=
Browser("CreationTime:=1").Page("Micclass:=page").webButton("html
id:=ctl00_contplhDynamic_imgSignIn").GetROProperty("name")

Set fo=CreateObject("scripting.FilesystemObject")

Set otext=fo.CreateTextFile ("c:\Text11.txt")

''otext.Write a

Set oExcel=CreateObject("Excel.Application")



oExcel.Visible=True

Set oWorkBook=oExcel.Workbooks.Open("c:\Test11.xls")

Set oWorkSheet=oWorkBook.Worksheets("Sheet1").cells(1,1)

oWorkSheet.value=a

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a data driven test in qtp?

591


How to use transactions in qtp?

565


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1380


How to creating an output value using quicktest professional (qtp)?

573


What are the steps involved in the recovery scenario wizard?

562






How are actions and functions different in QTP?

660


How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet

1543


write a script to verify the image path(src property) of the images which are in web pages.

1811


Get the count of files of similar types from a folder.

977


How many types of recording modes in the qtp?

600


How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3446


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1525


Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2070


banking domain description for software tester for interview

3469


We stored into the objects OR and then write the scripting

1546