Micro Focus QTP (UFT) Forums
Capture All text from webpage and copy it... - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Capture All text from webpage and copy it... (/Thread-Capture-All-text-from-webpage-and-copy-it)



Capture All text from webpage and copy it... - mpatra - 12-25-2014

Hello,

I am a beginner and as per a specific scenario i need to capture all data from google search page.

Ex: search for "qtp automation" in google search and whatever the data is coming as a search result, i need to Select All and copy it and store it in a notepad.

i tried but feeling like i am not able to drive it properly.
Will appritiate if someone can give me the code to copy the text.

<<Summary - Need to copy all text from a google browser>>
Thanks in Advance...


RE: Capture All text from webpage and copy it... - supputuri - 12-26-2014

Yes it is possible to get all the text, but why do you want to capture all the text in the entire page, it's unusual scenario so could you please let us know your requirement.


RE: Capture All text from webpage and copy it... - Sreeni.lutukurthy - 03-20-2015

you can use .GetVisibleText for capturing the entire content from a object


RE: Capture All text from webpage and copy it... - vimlesh - 07-25-2018

(12-26-2014, 11:38 PM)supputuri Wrote: Yes it is possible to get all the text, but why do you want to capture all the text in the entire page, it's unusual scenario so could you please let us know your requirement.

i have to copy all the links on the webpage and paste into word document .
I have already opened word doc and pasted screenshots of webpage  into it.
Now i need to copy and paste links on webpage into word doc