Thanks All:)

On Jul 28, 11:04 am, Rajiv Nanduani <[email protected]>
wrote:
> VB Get All Web page text ( Including All
> Webelemen...<http://testeverythingqtp.blogspot.com/2011/07/vb-get-all-web-page-tex...>
>
> http://testeverythingqtp.blogspot.com/2011/07/vb-get-all-web-page-tex...
>
>
>
>
>
> On Thu, Jul 28, 2011 at 9:39 AM, jilan khan <[email protected]> wrote:
> > Hi Gaga,
> > iam sending how to find the dynamic text in webpage,i tried the below code,
> > it should be fine
>
> > *Some Time we have to check that particular text is present on page or not
> > during automation. If we get the page outer HTML in QTP we can not  get the
> > whole text of all element like frame , webtable . div.etc…*
>
> > *So i created a function which will  check that the given text is present
> > on page or not If Text present on page it will return True else False*
>
> > REM  ——-   Set page object     ———-
> > set objpage = Browser(“BrowserName”).Page(“Pagename”)
>
> > msgbox   VerifyTextPresentOnPage(objpage ,”rajiv” )
>
> > Function VerifyTextPresentOnPage(byval objpage , byval Textvalue )
> > On error resume next
>
> > REM ——- Create child object description
> > Set childobjdes = Description.Create()
> > childobjdes(“micclass”).value=”WebElement”
> > childobjdes(“html tag”).value=”.*[A-Za-z0-9].*”
> > childobjdes(“outertext”).value =”.*[A-Za-z0-9].*”
>
> > REM  ———-Create ALL child object
> > set allobj = objpage.ChildObjects(childobjdes)
> > REM  get all  web element  outer text from web page and store in output
> > variable
> > For i=1 to allobj.count-1
> > output=  output   & allobj.Item(i).GetROProperty(“outertext”)
> > Next
> > REM  now compare the value if the given value find or not
> > If instr(1,lcase(output),lcase(Textvalue)) > 0  Then
> > rem return true if found
> > VerifyTextPresentOnPage= True
> > Else
> > rem return true if  not found
> > VerifyTextPresentOnPage= False
> > End If
> > On Error GoTo 0
> > End Function
>
> > Regards,
>
> > jilan khan.M
>
> > On Wed, Jul 27, 2011 at 9:02 PM, Ganga Subash <
> > [email protected]> wrote:
>
> >> Missed some info, appened & highlighted the samme.
>
> >> On Wed, Jul 27, 2011 at 8:55 PM, Ganga Subash <
> >> [email protected]> wrote:
>
> >>> Hi All,
> >>> Could anyone help me out....
>
> >>> I'm having the requirement like following:
> >>> 1. Need to find the selected/required text in a webpage and also to find
> >>> the Read only/Read write mode of the needed texts.
>
> >>> 2. Web page contains *many & dynamic text*.
>
> >> Could anyone plz gimme an idea like how to loop? r any alternative idea to
> >> cover the same?
>
> >> Thanks,
> >> Ganga
>
> >>  --
> >> You received this message because you are subscribed to the Google
> >> "QTP - HP Quick Test Professional - Automated Software Testing"
> >> group.
> >> To post to this group, send email to [email protected]
> >> To unsubscribe from this group, send email to
> >> [email protected]
> >> For more options, visit this group at
> >>http://groups.google.com/group/MercuryQTP?hl=en
>
> >  --
> > You received this message because you are subscribed to the Google
> > "QTP - HP Quick Test Professional - Automated Software Testing"
> > group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/MercuryQTP?hl=en
>
> --
>
> Regards
>
> *RAJIV <http://testeverythingrajiv.com/>
> KUMAR<http://rajivkumarnandvani.wordpress.com/>
> NANDVANI <http://testeverythingqtp.blogspot.com>*
>
> http://rajivkumarnandvani.wordpress.comhttp://testeverythingqtp.blogspot.com/-
>  Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to