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
how to find that tools work well with your existing system?
How can you pass value one action to another action?
What is checkpoints for quicktest professional?
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
How to integrate the qualitycenter with qtp
which type of testing process are you following in ur company? how to recognize a qtp page?
Suppose I have three hyperlinks with same properties. How to solve this and what are the ways to solve this. we can solve this by using index property but what are the other ways we have have to solve this problem. Login (href: btnlogin.aspx) Login (href: Sourcelogin.aspx) Login (href: homelogin.aspx)
How you create new action in qtp?
How many add-ins comes by default with qtp?
What is qtpro? What is quick test pro? What is a quick test professional?
How can I check if a environment variable exist or not?
What are the different kinds of test steps?
What are the major/ important methods, functions in QTP we use realtime testing
Explain hybrid framework with advantages and disadvantages?
what is actually contain test report? can anybody post the test report