• Maximizing Browser using DOM

    This article explains how to maximize a browser window using HTML DOM. Actually, it is not maxmizing the browser, it resizes browser to the size…...

    Read More
  • Running Javascript in QTP

    Most awaited feature for Web application automation is implemented in QTP 11. Yes, it is Running JavaScript snippets during run-time. It is really helpful to…...

    Read More
  • Getting Cursor Position From WebEdit

    If you want to retrieve cursor position from an WebEdit, it can be done using Range boundary from Selection. Code

    ...

    Read More
  • Getting Excel Column Names using ADODB

    Getting Excel columns names using ADODB is simpler than Excel COM interface. The below code shows how to retrieve column names from XLS. Code

    ...

    Read More
  • Validating Sorted WebList Values

    Validating Sorted WebList. The below code excludes default selected value (i.e. –Choose One–) from validation. Code

    ...

    Read More
  • XPath Based QTP Object Identification

    XPath object identification is a new feature in QTP 11. We would like to share an example for it using Google web page. Code

    ...

    Read More
  • Use WMI Code Creator Tool for Quick WMI Scripting

    Are you searching for WMI codes? Or do you want to know about WMI classes and properties? Microsoft has created an application to reduce our…...

    Read More
  • XPath Examples for QTP Web Objects

    QTP XPath examples to identify web objects. XPath is a language for addressing parts of an XML document. Xpath expressions to select nodes or node-sets…...

    Read More
  • Retrieve values from Quality Center Test Lab and Defects tab using OTA

    Getting the Number of Passed, Failed, No Run and Not Completed Test cases We can make use of the Filter as given below to get…...

    Read More
  • More Methods For PathFinder

    Most of us are aware of the Locate method available for PathFinder object, but there are more useful and unfamiliar methods associated with PathFinder Object.…...

    Read More
  • QC Test Lab results update using OTA

    The below OTA code creates a run for a test and steps for it. This is very helpful to upload your local execution results to…...

    Read More
  • SWF Edit Native Properties & Methods

    Font Details Confirming whether textbox’s font is bold or not

    Getting applied font name Retrieving Font size Text Selection Selecting all text…...

    Read More
  • Mask Input Value

    Since this is the very first article in this blog, we would like to start it with well known masking input value technique using Dot…...

    Read More
  • Clicking WPF Button

    We can automate Windows Presentation Foundation (WPF) applications using QTP with WPF-Addin. But is it possible to automate without addin? Yes, it is possible. Microsoft…...

    Read More
  • Line Count

    We all know how to count number of lines in a text file. We can use any one of the below methods to do that.…...

    Read More
  • Capturing Screen Region

    Using QTP we can capture an object or Desktop using CaptureBitmap method. How to capture a region of screen? It can be done using System.Drawing.Graphics.CopyFromScreen…...

    Read More
  • Splitting a String Using Regular Expression

    .Net Regular Expression engine is more powerful than VBScript Regular Expression engine. RegEx is one of the classes of .Net Regular Expression engine. Using the…...

    Read More
  • Sending an Email

    Sending an email using VBScript can be done using Collaboration Data Object (CDO) messaging. But it is supported only in Windows 2000, Windows Server 2003,…...

    Read More
  • Drawing Shapes in Images

    When we capture screenshots, we might need to draw some shape over the screenshot to highlight some errors or some object. In such cases, we…...

    Read More
  • Selecting WPF Checkbox

    In this article, we will see how to select WPF Checkbox using TogglePattern class which is available in UI Automation pattern. Code

    Synopsis Once…...

    Read More
  • Generating Random File Name

    Sometimes we may need to generate a random file name. In VBScript we can use Scriptlet.TypeLib to generate GUID for random data, but length of…...

    Read More
  • Setting Value in WPF Textbox

    As a continuation to the previous WPF automation article. In this topic, we will see how to set value in WPF Textbox. Let’s see how…...

    Read More
  • Downloading a File

    Downloading a file is very simple in .NET and only few lines are required. Code

    Synopsis Once the above code is run, the file…...

    Read More
  • Checking Remote Computer Availability

    There might be a case where we have to connect to remote computer. In such case, before connecting to the remote computer, How to confirm…...

    Read More