|
|
|
|
IE Dialog Box, Print
|
|
06-29-2009, 11:57 PM
Post: #1
|
|||
|
|||
|
IE Dialog Box, Print
I have a website with an input button named Print. It opens a page which then fires off a Print dialog box via javascript using window.print();. My problem is I have not been able to automatically close it. Does anyone have any experience with this? My code is the following: Code: Browser("title:=(.*)Print(.*)").Dialog("regexpwndtitle:=Print").WinButton("text:=Cancel").ClickIt says Quote:Cannot find the "[WinButton]" object's parent "[Dialog]" (class Dialog). Verify that parent properties match an object currently displayed in your application. I have a Wait command before it that waits for 2 seconds. I'll probably end up changing it to 5 to see if that helps. |
|||
|
06-30-2009, 02:36 AM
Post: #2
|
|||
|
|||
|
RE: IE Dialog Box, Print
Hello,
Please see if the following helps: Code: With Dialog( "micclass:=Dialog" )Regards, Anshoo Arora Relevant Codes - Test Automation Articles, Tips & Tricks AdvancedQTP |
|||
|
06-30-2009, 05:50 PM
Post: #3
|
|||
|
|||
|
RE: IE Dialog Box, Print
Awesome. That did the trick!
|
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Dialog box error while QTP scripts run from VM Desktop | rahuldps | 2 | 948 |
11-14-2011 01:47 PM Last Post: ravi.gajul |
|
| Write a program to print the current folder name in the local system. | kannan_panneerselvam | 8 | 1,011 |
07-09-2011 11:10 AM Last Post: souvikghosh_diatm |
|
| QTP Not identifying the Java Dialog box | Automation_QA | 2 | 1,423 |
08-31-2010 07:02 PM Last Post: Prafulla |
|
| problem with file "save as dialog box" | caze | 3 | 1,127 |
12-10-2009 11:44 AM Last Post: caze |
|
| problem with file "save as dialog box" | caze | 1 | 416 |
12-10-2009 10:29 AM Last Post: Saket |
|
User(s) browsing this thread: 1 Guest(s)
|
|

Search
Member List
Calendar
Help



