Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1882


how to know no.of mails in our g mail by using vb-script

2173


How you can decide which type of object repository you have to use?

1110


Describe function procedure in vbscript.

1060


Explain the types of object repository?

938


what is the difference between built-i function and In-built function?

2104


How many tabs are available in debug viewer pane?

1057


What are the disadvantages of recording test cases in qtp?

983


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

1935


How to capture all the data of a webtable, weblist and combolist using QTP?

3283


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

2022


Why script error occur in between recording in qtp?

2221


What is the significance of “action 0” in qtp?

971


How to test fly out menu in qtp?

908


Is it possible to call from one action to another action in qtp?

977