how can I read text in browser and export the same into text
file?
Answer Posted / akhaleshyadav1985
systemutil.Run "Iexplore","www.gmail.com","open"
wait 10
Set desc=description.Create()
desc("micclass").value="WebElement"
desc("html tag").value="P"
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
Next
Dim Fso,file_loc,Fc,Forreading,d
Set Fso=createobject("scripting.FileSystemObject")
Set Fc=Fso.OpenTextFile("C:\aa\akh.txt",Forwriting,true)
Fc.Writeline(d)
Akhalesh Yadav
9555717928
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to modify the text checkpoint?
How can you handle exceptions in qtp?
Explain the features of quick test pro(qtp)?
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 QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
What are metrics and matrix?
Which environments are supported by hp qtp?
give me an example where u used good judgement and logic in solving a problem
How is recording done when a application is over lapping the QTP application it gives a message object not recorded
what are the limitations of smart identification in qtp 9.0
Explain how Does Run time data (Parameterization) is handled in QTP?
Explain the types of object repository?