SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Feb 2007
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Display a html popup box during runtime

    I want to display a html popup box during runtime, which will automatically disappear after a predefined time. Can this be done without disturbing the script execution

  2. #2
    Member ravikonka's Avatar
    Join Date
    Oct 2007
    Location
    Brussels, Belgium
    Posts
    181
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Display a html popup box during runtime

    Hope this will help...
    ----------------------------
    Call MsgBoxTimeout ("http://testingfaqs.co.in","My Title", 2)

    Function MsgBoxTimeout (Text, Title, TimeOut)

    Set WshShell = CreateObject("WScript.Shell")

    WshShell.Popup Text, TimeOut, Title

    End Function
    Ravi Konka -

    ***** Help others it will help you *****

  3. #3
    Junior Member
    Join Date
    Feb 2007
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Display a html popup box during runtime

    Thanks Ravi.
    Can this be done without an OK button. Like just displaying a message.

  4. #4
    Member ravikonka's Avatar
    Join Date
    Oct 2007
    Location
    Brussels, Belgium
    Posts
    181
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Display a html popup box during runtime

    I think it is not possible...for more info refer the below link.

    http://www.w3schools.com/vbscript/func_msgbox.asp
    Ravi Konka -

    ***** Help others it will help you *****

  5. #5
    Advanced Member
    Join Date
    Sep 2007
    Location
    Chennai, Tamil nadu, India
    Posts
    999
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Display a html popup box during runtime

    Hi try below

    <font class="small">Code:</font><hr /><pre>Dim objIE
    ' Create an IE object
    Set objIE = CreateObject( "InternetExplorer.Application" )
    objIE.Navigate "about:blank"
    objIE.Document.Title = "Empty Popup"
    objIE.ToolBar = False
    objIE.Resizable = False
    objIE.StatusBar = False
    objIE.Width = 500
    objIE.Height = 200
    With objIE.Document.ParentWindow.Screen
    objIE.Left = (.AvailWidth - objIE.Width ) \ 2
    objIE.Top = (.Availheight - objIE.Height) \ 2
    End With
    Do While objIE.Busy
    WScript.Sleep 200
    Loop
    objIE.Document.Body.InnerHTML = "&lt;div align=""center""&gt;&lt;p&gt;Prince3105&lt;/div&gt;&lt;/&gt;"
    objIE.visible = true
    WScript.Sleep 5000
    objIE.quit
    Set objIE = Nothing </pre><hr />
    i have never seen bugs sleeping

  6. #6
    Junior Member
    Join Date
    Feb 2007
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Display a html popup box during runtime

    Prince,
    I tried your code. But the problem is i do not want to stop the script execution at any point of time. My scenario is, application will be running. At times it will take some time to identify an object in the screen, so the applicaion will stand still for a few seconds. At this point of time, a pop up should come up saying that 'Script is running. Please wait'. In short the script executiona and the display of popup should happen side by side.

  7. #7
    Advanced Member
    Join Date
    Sep 2007
    Location
    Chennai, Tamil nadu, India
    Posts
    999
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Display a html popup box during runtime

    Multi threading is not possible..
    i have never seen bugs sleeping

  8. #8
    Member
    Join Date
    Jun 2007
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Display a html popup box during runtime

    Try with

    Print "Please Wait....."
    Ashish Goel,
    QTP Automation Engineer,
    India

  9. #9
    Advanced Member
    Join Date
    Sep 2007
    Location
    Chennai, Tamil nadu, India
    Posts
    999
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Display a html popup box during runtime

    [ QUOTE ]
    Try with

    Print "Please Wait....."

    [/ QUOTE ]

    No Asish print method will create logs only, he expects to show some message, at the time of other process being executed..
    i have never seen bugs sleeping

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:13 PM.

Copyright BetaSoft Inc.