Forum Discussion
CLowe wrote:3) I didn’t see c# script when we select scripting language.Why is it?
C#Script is not recommended for new projects. Use JavaScript instead - the syntax (functions, loops, etc.) is compatible and the engine is a modern ECMAScript 6 engine.
Long answer:
We hid C#Script and C++Script from the Project Wizard because their names were causing confusion. C#Script is not C# and C++Script is not C++. They are special-purposes versions of the (now legacy) Microsoft JScript engine that use the square bracket syntax instead of dot notation, that is:
Aliases["browser"]["myPage"]["linkProducts"]["Click"]();
// instead of simply // Aliases.browser.myPage.linkProducts.Click();
The purpose of C#Script and C++Script was to write code that could be imported into so-called Connected and Self-Tested Applications. Users who do not use Connected and Self-Tested Applications should not use C#Script and C++Script.
If you really need to create a C#Script project, you can do this as follows:
- Create a project suite.
- Right-click the project suite and select Add | New Item.
- Select C#Script as the project language, and proceed from there.
Related Content
- 3 years ago
- 4 years ago
Recent Discussions
- 2 days ago