how can I read text in browser and export the same into text
file?
Answer Posted / eswar
'Modified answer foe above Script
systemutil.Run "Iexplore","www.google.com","open"
wait 5
Set desc=description.Create()
desc("micclass").value="WebElement"
desc("html tag").value="P"
Dim Fso,file_loc,Fc,Forreading,d
Set Fso=createobject("scripting.FileSystemObject")
Set Fc=Fso.CreateTextFile("D:\akh.txt",8)
Set a=browser("title:=.*").page("title:=.*").ChildObjects(desc)
b=a.count
msgbox b
For i=0 to b-1
d=a(i).getroproperty("outertext")
a(i).highlight
' print "Text -->" & d
MsgBox d
Fc.writeline"The text is : "&d
Next
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to export quicktest professional results to an .xls file?
How to find the difference between 2 dates in qtp?
Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work
Explain the check points in quicktest professional?
Why is action split used by qtp?
On what document base Descriptive programming is written if build is not yet ready ?
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version
What is synchronization? What are the ways you can synchronize?
How does quicktest professional (qtp) identifies the object in the application?
Where you get the run time data table?
In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?
Please guide me release notes of Automation once scripts are completed
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
How many ways we can parameterize data in quicktest professional (qtp)?
Why script error occur in between recording in qtp?