Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog winbutton OK problem in IE
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi,
I am using qtp 10 on a windows terminalserver 2008. I make a connection to this server through a remote desktop connection(RDC).
I am running a qtp script which runs ok when i look at the runprocess in the RDC window. But when i run the script and minimize the RDC window,
the script fails always on one point. It's a IE browser dialog window. QTP gives a runtime error saying it does not find the object, which is an OK
winbutton that needs to be clicked. The endresult is that the ok button never gets clicked.
I tried descriptive programming, WinButton("text:=Cancel").Click,
also just absolute coordinates of the mousecursor to click.
Code:
Dim dr
Set dr = CreateObject("Mercury.DeviceReplay")
'dr.MouseClick 400, 500, 0
dr.MouseClick 330, 116,RIGHT_MOUSE_BUTTON

But nothing seems to help. Does anyone know a solution, in order for me to run the script without having the RDC window on the foreground?

On the site below you have the same dialogbox and the same error when clicking ok with a minimized RDC window.

http://www.htmlite.com/JS006.php

Code:
Browser("JavaScript - Confirm pop").Page("JavaScript - Confirm pop").Sync
Browser("JavaScript - Confirm pop").Navigate "http://www.htmlite.com/JS006.php"
Browser("JavaScript - Confirm pop").Dialog("Message from webpage").WinButton("OK").Click
Browser("JavaScript - Confirm pop").Dialog("Message from webpage").WinButton("OK").Click
Reply
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
see if this thread helps

https://www.learnqtp.com/forums/Thread-H...hlight=RDP

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Winbutton slow in clicking kpat 0 1,686 05-23-2016, 12:09 PM
Last Post: kpat
  how to get background color of a WinButton javierchen 1 2,901 03-17-2015, 10:59 PM
Last Post: babu123
  IE browser dialog cowboy49 1 2,446 10-24-2011, 11:47 AM
Last Post: Ankesh
Toungue Two dialog box issues mv8167 3 3,780 09-28-2011, 11:09 PM
Last Post: mv8167
  Display a Dialog box mv8167 3 4,447 07-18-2011, 07:53 PM
Last Post: mv8167

Forum Jump:


Users browsing this thread: 1 Guest(s)