Represents the base attribute class for the triggers.

Syntax

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Assembly, AllowMultiple = true)]
public abstract class TriggerAttribute : Attribute

Properties

public TriggerEvents

On { get; set; }

Gets or sets the trigger events.

public TriggerPriority

Priority { get; set; }

Gets or sets the priority. The default value is Medium.

public TriggerScope

AppliesTo { get; set; }

Gets or sets the scope to apply the trigger to. The default value is Self.

public bool

IsDefinedAtComponentLevel { get; }

Gets a value indicating whether this trigger is defined at the component level.

Methods

protected internal abstract void

Execute<TOwner>(TriggerContext<TOwner> context)

where TOwner : PageObject<TOwner>, IPageObject<TOwner>

Executes the specified trigger action.