Results 1 to 5 of 5

Thread: QTP: Code to refresh a page.

  1. #1
    Contributing Member
    Join Date
    Feb 2008
    Answers
    36

    QTP: Code to refresh a page.

    Hi all,

    I'm trying to refresh a webpage using QTP.
    I tried the following code:
    dim WshShell
    Set WshShell = CreateObject("WScript.Shell")
    WshShell.SendKeys "{F5}"
    Set WshShell = Nothing
    But no use...

    Please let me know the solution to this.

    Regards,
    Tina Mahajan.


  2. #2

    Re: QTP: Code to refresh a page.

    Browser("micclass:=Browser").Refresh


  3. #3
    Expert Member
    Join Date
    Jan 2007
    Answers
    211

    Re: QTP: Code to refresh a page.

    Quote Originally Posted by Tina Mahajan View Post
    Hi all,

    I'm trying to refresh a webpage using QTP.
    I tried the following code:
    dim WshShell
    Set WshShell = CreateObject("WScript.Shell")
    Browser("browser").Activate
    WshShell.SendKeys "{F5}"
    Set WshShell = Nothing
    But no use...

    Please let me know the solution to this.

    Regards,
    Tina Mahajan.

    Regards,
    Nawab


  4. #4
    Contributing Member
    Join Date
    Feb 2008
    Answers
    36

    Re: QTP: Code to refresh a page.

    Thanks to both of u!!!


  5. #5
    Junior Member
    Join Date
    May 2010
    Answers
    1

    Re: QTP: Code to refresh a page.

    Thanks very much for the info..Its working fine


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