Results 1 to 3 of 3

Thread: find home page of the application/webapp using QTP?

  1. #1

    find home page of the application/webapp using QTP?

    How can i know iam in home page of the application/webapp using QTP?


  2. #2
    Expert Member
    Join Date
    Apr 2008
    Answers
    1,859

    Re: find home page of the application/webapp using QTP?

    hai friend,

    Just identify the object in the home page so that you can identify whether you are in the home page or not. Here in the below example I am assuming that I have an image in the home page.

    for ex:

    If Browser("B").Page("P").Image("home").exist Then
    Reporter.reportEvent micPass,"Home Page",Navigated to home Page"
    else
    Reporter.reportEvent micFail,"Home Page",Not navigated to home Page"
    End If

    Thanks
    Deepa


  3. #3
    Junior Member
    Join Date
    Feb 2008
    Answers
    24

    Lightbulb Re: find home page of the application/webapp using QTP?

    Mostly the home page has only absolute address. I mean it will be link http://www.geekinterview.com/ and nothing after http://www.geekinterview.com. So you can compare you current url and find out it's a home page or not. But in some of the cases it like http://www.geekinterview.com/index.html or http://www.geekinterview.com/homepage.html so what you can do is you can enter the absolute path i mean http://www.geekinterview.com/ in the browser and then whatever comes in the reply will be the address of your home page. Now you can compare this address with your page's address to verify whether it is a homepage or not.


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