Class: DatadogAPIClient::V1::SyntheticsStepType

Inherits:
Object
  • Object
show all
Includes:
BaseEnumModel
Defined in:
lib/datadog_api_client/v1/models/synthetics_step_type.rb,
lib/datadog_api_client/v1/models/synthetics_step_type.rb

Overview

Step type used in your Synthetic test.

Constant Summary collapse

ASSERT_CURRENT_URL =
"assertCurrentUrl".freeze
ASSERT_ELEMENT_ATTRIBUTE =
"assertElementAttribute".freeze
ASSERT_ELEMENT_CONTENT =
"assertElementContent".freeze
ASSERT_ELEMENT_PRESENT =
"assertElementPresent".freeze
ASSERT_EMAIL =
"assertEmail".freeze
ASSERT_FILE_DOWNLOAD =
"assertFileDownload".freeze
ASSERT_FROM_JAVASCRIPT =
"assertFromJavascript".freeze
ASSERT_PAGE_CONTAINS =
"assertPageContains".freeze
ASSERT_PAGE_LACKS =
"assertPageLacks".freeze
CLICK =
"click".freeze
EXTRACT_FROM_JAVASCRIPT =
"extractFromJavascript".freeze
EXTRACT_VARIABLE =
"extractVariable".freeze
"goToEmailLink".freeze
GO_TO_URL =
"goToUrl".freeze
GO_TO_URL_AND_MEASURE_TTI =
"goToUrlAndMeasureTti".freeze
HOVER =
"hover".freeze
PLAY_SUB_TEST =
"playSubTest".freeze
PRESS_KEY =
"pressKey".freeze
REFRESH =
"refresh".freeze
RUN_API_TEST =
"runApiTest".freeze
SCROLL =
"scroll".freeze
SELECT_OPTION =
"selectOption".freeze
TYPE_TEXT =
"typeText".freeze
UPLOAD_FILES =
"uploadFiles".freeze
WAIT =
"wait".freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseEnumModel

included

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



50
51
52
# File 'lib/datadog_api_client/v1/models/synthetics_step_type.rb', line 50

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



57
58
59
60
# File 'lib/datadog_api_client/v1/models/synthetics_step_type.rb', line 57

def build_from_hash(value)
  constantValues = SyntheticsStepType.constants.select { |c| SyntheticsStepType::const_get(c) == value }
  constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value
end