Forum Discussion

chrislukasik's avatar
chrislukasik
Contributor
5 years ago
Solved

how do i interact with aliases in C#

I am working on a web project.   

 

Aliases["browser"]["pageClientGroupWelcomePage"]["linkLaunchClientGroupApplication"]["Click"]();

 

how do I write C# code to access the aliases ?  what namespaces do i need ?

  • There are many examples of this in the documentation.
    The real question is WHY are you using C# script in TestComplete?

    I definitely do not recommend it

    If there is a reason you have to use C#Script please share here and I am happy to explain that there is never a good reason for using C#Script or C++Script in TestComplete

    Cheers
    Lino

1 Reply

  • LinoTadros's avatar
    LinoTadros
    Community Hero
    There are many examples of this in the documentation.
    The real question is WHY are you using C# script in TestComplete?

    I definitely do not recommend it

    If there is a reason you have to use C#Script please share here and I am happy to explain that there is never a good reason for using C#Script or C++Script in TestComplete

    Cheers
    Lino