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
Explain different types of action in qtp?
How to associate shared object repository to test in qtp?
explain keyword driven framework with banking domain?
Does QTP run in any environment?
How many types of recording modes in the qtp?
Explain in brief about the quicktest professional (qtp) automation object model?
Hi all Can u give me the link where we can download full version of qtp my mail id is karthic.venkitapathi@gmail.com
What is the architecture of your project? Can any one answer for this question plz........
How to create scenario selector
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
How to test the login page in different ways in automation testing and i need code?
Explain data driven framework?
How do you send email with attachment from outlook using qtp ?
how to know no.of mails in our g mail by using vb-script