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
What are the different types of recording modes in qtp? Which will be used when?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
How you can decide which type of object repository you have to use?
What is the difference between analog and low level recording?
What is output value? How many types of output values are there in qtp?
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
If you are testing a web application then what will you test in that application?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
How do Parameterization and Data-Driving relate to each other in QTP?
Why is Client side image is preferred over server side image?
Define Error Pane of UFT?
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?