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 type of framework u r using in ur organization

1650


Write a script to customize the test results in PDF and HTML format.

2082


Does Low-level recording capture mouse movements?

582


Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.

1369


How to run a test using quicktest professional?

528






What is Port testing. Whhen will you perform?

1498


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

2892


When and why to use descriptive programming?

606


What are the benefits of qtp?

556


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3271


how to test use the quality control .how to verify the image verification

2544


What is the meaning Work bench?

1762


There is an excel file of 1 to 100 sheets how you will iterate through it?

528


QTP script is not working on other's machine..

1537


Hi. I have completed B.TECH(CS) , But I will go to "SECURITY CONSOLE OPERATING" [C.C CAMERA abservation]. IF interviwer asks " Why you choose this job ?" What we will say? urgent.........................urgent...........

1445