QTP Webedit with Scroll identified as a single obj
I have a Requirement where i would have to navigate to a Web page and in that i have a webEdit Box with Scroll bars. I need to Take Screen Print of the entire webpage, Store it in a Document and then Scroll Down(WEb edit) again take a Screen print and store it in the same document, similarly i would have to do it until the End of the Scroll.
I tried in all the possible ways i can but in Vain (tried to get visibletext, doscroll....)
[img]/images/graemlins/confused.gif[/img] <font color="red"> </font> Problems I am facing here with QTP are.
1. WebEdit + Scroll is identified as a Single Object "webEdit"
2. I need to scroll only till the end of the scroll and no extra screen print should be taken
3. All the Screen prints should be stored in a single document
i have attached a Copy of the Webedit text in the webpage
If anyone can help me would be very useful
Re: QTP Webedit with Scroll identified - Single Ob
Can you try this:
1.Take entire text in a variable
2.Count how many no. of enter keys (it gives you how many total lines) and add + 1 to that number( this is for last line) - I am assuming here 100
3.Count manually how many number of lines you will get per screen(if suppose 10)
4.Do loop till to reach 100th line
5.Write screen print code in your loop and paste them in a document.