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
What are the methods of the TextStream object that are used for reading from a text file?
How can we conduct U-I Testing by using QTP??????
What are the methods used in UFT to handle exceptions or run-time errors?
How to data driven test for Win objects in QTP ?
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.
Can we use index on view?
Is text area check point supports for web applications?
Is it possible to switch between recording modes during a test creation?
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.?
Discuss quicktest professional environment?
how to know no.of mails in our g mail by using vb-script
In Remote acess server how u run a test?
What Folder Structure following in Keyword Driven Frame work?
Hi All, How to get repeated word in string . Thanks Balaji
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans