KeywordGroupAttribute Class

Description

Specifies that a class is a keyword group. Methods within this class that are marked as keywords are keywords. The qualified name of these methods consists of the name of the keyword group and the name of the keyword. If the keyword group has no name, the simple name of the declaring class is used instead.

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class>
Public Class KeywordGroupAttribute Inherits Attribute

Properties

Name Description
Name Property (KeywordGroupAttribute) Gets the name of the keyword group. The default value is an empty string.

Example: Creating a keyword group

Use the following code sample to create the keyword group LoginPage:

<KeywordGroup()>
Public Class LoginPage
  ' keyword methods
End Class

Example: Specifying the name of the keyword group

Use one of the following code samples to create the keyword Login with the arguments username and password, without using a description for the arguments:

<KeywordGroup("Login Page")>
Public Class LoginPage
  ' keyword methods
End Class