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 are the methods of the TextStream object that are used for reading from a text file?

1874


How can we conduct U-I Testing by using QTP??????

1623


What are the methods used in UFT to handle exceptions or run-time errors?

849


How to data driven test for Win objects in QTP ?

1658


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.

1707


Can we use index on view?

1825


Is text area check point supports for web applications?

706


Is it possible to switch between recording modes during a test creation?

782


What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?

819


Discuss quicktest professional environment?

777


how to know no.of mails in our g mail by using vb-script

1971


In Remote acess server how u run a test?

1453


What Folder Structure following in Keyword Driven Frame work?

2479


Hi All, How to get repeated word in string . Thanks Balaji

1123


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1811