Results 1 to 3 of 3

Thread: how do you count the total no.of links in a webpage using qtp

  1. #1

    how do you count the total no.of links in a webpage using qtp

    hi friends,
    in my interview with Satyam, i have faced this question


  2. #2
    Junior Member
    Join Date
    Nov 2007
    Answers
    6

    Re: how do you count the total no.of links in a webpage using qtp

    Quote Originally Posted by saritha_racharla View Post
    hi friends,
    in my interview with Satyam, i have faced this question
    By using Childobject method we can count the number of likes in a web page. the code will be like this


    Set obj = Description.Create()
    obj("html tag").value = "A"

    Set childItems = browser("Google").Page("Google").ChildObjects(obj)
    msgbox childItems.count

    Please revert me in case of any clarifications


  3. #3
    Contributing Member
    Join Date
    Nov 2007
    Answers
    48

    Smile Re: how do you count the total no.of links in a webpage using qtp

    Hi,

    Try to use No of Links property of Page CheckPoint. It will gives exact number of count about number of URL's currently presents on the page.

    Thanks

    CPS


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact