Module: LeapSalesforce::PageIntrospection

Included in:
UpdatePage, ViewPage
Defined in:
lib/leap_salesforce_ui/page_introspection.rb

Overview

Relates to a page inspecting it’s own state

Instance Method Summary collapse

Instance Method Details

#idString

Returns Id of current entity.

Returns:

  • (String)

    Id of current entity



7
8
9
# File 'lib/leap_salesforce_ui/page_introspection.rb', line 7

def id
  LeapSalesforce.browser.url.split("/")[-2]
end