Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to terminate the unwanted window while executing the script
#1
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi All,
I have a [Print] button on web page , i have to test this fuinctionality whether by click on this button does the printer popup is displaying or not.In my case here it is working when i click on [Print] it is getting displayed print popup page

Note: I have given the run option like run on specific url

Could you please explain about the procedure to terminate this window

Thanks in advance,

Venkat.Batchu
Reply
#2
Solved: 11 Years, 3 Months, 2 Weeks ago
is this a web Page or window dialog which pops up after clicking on Print button?
if this is a browser,Can you try does Browser().close works?
or for dialog see there must be some cancel button to close that.

Reply
#3
Solved: 11 Years, 3 Months, 2 Weeks ago
Printer popup is window and please view the attached screen shot for more information...


Attached Files Image(s)
   
Reply
#4
Solved: 11 Years, 3 Months, 2 Weeks ago
Hey Venkat,

You have just click on the cancel button to terminate this or just close it.
try the code below
Code:
Browser("").Dialog("Print").WinButton("Cancel").Click

OR

Browser("").Dialog("Print").Close

let me know if it works.

Reply
#5
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi,
Thanks saket,
Its working
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  VB Script access denied error when executing alm scripts in planned host Kumar Reshma 0 1,517 05-28-2018, 04:04 PM
Last Post: Kumar Reshma
  QC Test not found error or not executing remote tests zaira_p 5 9,894 08-04-2015, 10:22 PM
Last Post: mitsuy
  Executing BPT from QC ALM 11 a.karamched 3 5,745 07-17-2012, 07:41 PM
Last Post: jsknight1969
  Application Crashes while executing the script mahendra 2 4,140 01-18-2012, 09:41 AM
Last Post: mahendra
  QTP errors executing business components jsknight1969 1 6,040 12-15-2010, 10:27 AM
Last Post: Munnie

Forum Jump:


Users browsing this thread: 1 Guest(s)