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
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
how to know no.of mails in our g mail by using vb-script
How you can decide which type of object repository you have to use?
Describe function procedure in vbscript.
Explain the types of object repository?
what is the difference between built-i function and In-built function?
How many tabs are available in debug viewer pane?
What are the disadvantages of recording test cases in qtp?
I want to write some certification courses, so friends could you guide me? which certification is best and how to write exam and what tutorials need to be studied,what to do first, I am working on automation tool QTP 9.2
How to capture all the data of a webtable, weblist and combolist using QTP?
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
Why script error occur in between recording in qtp?
What is the significance of “action 0” in qtp?
How to test fly out menu in qtp?
Is it possible to call from one action to another action in qtp?