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 is a data driven test in qtp?
How to use transactions in qtp?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
How to creating an output value using quicktest professional (qtp)?
What are the steps involved in the recovery scenario wizard?
How are actions and functions different in QTP?
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
write a script to verify the image path(src property) of the images which are in web pages.
Get the count of files of similar types from a folder.
How many types of recording modes in the qtp?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
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
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
banking domain description for software tester for interview
We stored into the objects OR and then write the scripting