Saved Papers

Save papers so you can find them more easily!

Join Now

Get instant access to over 100,000 papers.

Join Now!

Qtp Command Examples

QTP Command Examples

1. Activate: Activates the current Dialog Box.
Syntax: object.Activate [BUTTON]
Example:
Sub Activate_Example()
'The following example uses the Activate method to activate the
'Internet Options dialog box.
Browser("Mercury Tours").Dialog("Internet Options").Activate
End Sub

2. CaptureBitmap: Saves the screen capture of the object as a .png or .bmp image using the specified file name.
Syntax: object.CaptureBitmap FullFileName, [OverrideExisting]
Example:
Sub CaptureBitmap_Example1()
'The following example uses the CaptureBitmap method to capture a
'screen shot of the Internet Options dialog box. The file is
'automatically saved to a different folder (the test run results
'folder) in each run.
Browser("Mercury Tours").Dialog("Internet Options").CaptureBitmap "internet_options.bmp"
End Sub

3. ChildObjects: Returns the collection of child objects contained within the object.
Syntax: object.ChildObjects (pDescription)......


View the rest of this paper...

Approximate Word Count: 1329
Approximate Pages: 6 (250 words per double-spaced page)

Why should you join Frat Files?

  • - It's safe, secure, and private.
  • - Instant access to over 100,000 papers. New papers are added hourly.
  • - Fast and reliable customer support.

Credit Card

Bank Account

PayPal

Similar Essays

  1. Qtp Command Examples

    Qtp Command Examples. QTP Command Examples 1. Activate: Activates the current
    Dialog Box. Syntax: object.Activate [BUTTON] Example ...