Share this page

ClickSpecial Method
Clicks this object, without first bringing its parent into focus.
Overload List

Overload | Description
--- | ---
ClickSpecial(MouseButton) | Clicks this object, without first bringing its parent into focus.
ClickSpecial(ClickArgs) | Clicks this object using the specified ClickArgs, without first bringing its parent into focus.

Example

    // The following example uses Insight to identify and activate an image object.
    // It clicks button "2" on the calculator. To run this test, the calculator
    // application must be open and a bitmap of button number "2" on the calculator
    // must be stored in the directory in which the test is running.

    [Test]
    public void TestCalcWithInsight()
    {
        var calculatorDescription = new WindowDescription
        {
            WindowClassRegExp = "CalcFrame",
            WindowTitleRegExp = "Calculator"
        };
        // Identify the calculator application.
        IWindow calculator = Desktop.Describe<IWindow>(calculatorDescription);
        // Locate the bitmap.
        string bitmapFolder = Directory.GetCurrentDirectory() + "\\TwoButton.bmp";
        Image image = Image.FromFile(bitmapFolder);
        var twoButton = calculator.Describe<IInsightObject>(new InsightDescription(image));
        twoButton.ClickSpecial(); //Click the number "2" button.

    }

Tips to improve your search results... OpenText™ Functional Testing for Developers .NET SDK Version: 25.2 OpenText™ Functional Testing for Developers SDK 25.2 All View Local Help Center View Online Help Center Version: