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
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
Explain different type of event trigger option.
Explain advantages and disadvantages of ddf?
Both static and dynamic arrays are handled by the vb script. Is it true?
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.
What are the benefits of quick test pro(qtp)?
How to record application running on the Virtual machine?
Explain Descriptive Programming Types with Examples?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
What is the difference between shared and local object repository?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
What is the quicktest professional (qtp) testing process?
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)
Can the user toggle between using Local OR and shared OR for the same action?