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


Please Help Members By Posting Answers For Below Questions

How to modify the text checkpoint?

792


How can you handle exceptions in qtp?

744


Explain the features of quick test pro(qtp)?

762


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 :)

1609


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1605


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

779


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

1143


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4471


What are metrics and matrix?

1541


Which environments are supported by hp qtp?

759


give me an example where u used good judgement and logic in solving a problem

3556


How is recording done when a application is over lapping the QTP application it gives a message object not recorded

1743


what are the limitations of smart identification in qtp 9.0

2109


Explain how Does Run time data (Parameterization) is handled in QTP?

752


Explain the types of object repository?

733