Sha256: 3f6dce766076b890ac7ab81e4db0c757d736ae2cb7561902edfb4e23caa6ebdc

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

module LeapSalesforce
  module SetRecordType
    # Set record type for an object before create form appears
    def set_record_type(record_type)
      LeapSalesforce.logger.info "Setting record type to '#{record_type}'"
      option = browser.label(xpath: "//label[.//*[@class='slds-form-element__label' and text()='#{record_type}']]")
      option.click
      browser.button(text: 'Next').click
      self
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
leap_salesforce_ui-0.3.0 lib/leap_salesforce_ui/set_record_type.rb