Sha256: fc66404b880659ba96e7ac37c34d133401229e75637b0082f93abb19da86c99f

Contents?: true

Size: 249 Bytes

Versions: 10

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

module LeapSalesforce
  # Relates to a page inspecting it's own state
  module PageIntrospection
    # @return [String] Id of current entity
    def id
      LeapSalesforce.browser.url.split("/")[-2]
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
leap_salesforce_ui-0.3.0 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.2.0 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.1.9 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.1.8 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.1.7 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.1.6 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.1.5 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.1.4 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.1.3 lib/leap_salesforce_ui/page_introspection.rb
leap_salesforce_ui-0.1.2 lib/leap_salesforce_ui/page_introspection.rb