What is the difference between window command and dialog command

WindowBox:
1.Menu bars are available.
2.Toolbars are available.
3.It looks like a parent.
4.It is possible to drag the sizes manually.



DialogBox:
1.We never get menu bars.
2.Tool bars are not available.
3.It is a child object.
4.It is not possible to drag sizes manully.

Showing Answers 1 - 2 of 2 Answers

Avra

  • Nov 21st, 2006
 

Windows command are generally follow the whole path...I mean if you are going to select a particular menu item then you have to follow the Window("A").WinMenu("B").WinMenu("C")....SelectBut the same is not followed for a dialog box. Most of the dialog box contains a text message and (OK/Cancel) button.Dialog box can be recognized by either following the window hierarchy or as a separate entity.(This depends hoe QTP recognizes)...the following two possibilities are there....Window("A").Dialog("B")......WinButton("OK").Click orDialog("B")......WinButton("OK").ClickThanks

  Was this answer useful?  Yes

hari

  • Dec 5th, 2006
 

what is the difference between window command and dialog command

window command work with only window in your application, but dialog command should work with window command.

ex.window("shopping").activate

incase of dialog box: u should with window command

that is window("shopping").windialog("items")

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions