Sha256: d78ce07d411bbd154f268464e5791c090f586e32e7a6d8106eb6ea721f0f4757
Contents?: true
Size: 1.01 KB
Versions: 9
Compression:
Stored size: 1.01 KB
Contents
<%- if automation == 'sparkling_ios' -%> require 'sparkling_watir/element' class Page attr_reader :app def initialize(app) @app = app end def to_s self.class.to_s.sub('Page', ' Page') end end <%- else -%> <%- if web? -%> require_relative '../components/header' <%- end -%> class Page <%- if automation == 'cross_platform' -%> include AppiumHelper <%- end -%> <%=- ERB.new(File.read(File.expand_path('./partials/initialize_selector.tt', __dir__))).result(binding) -%> <%=- ERB.new(File.read(File.expand_path('./partials/visit_method.tt', __dir__))).result(binding) -%> <%=- ERB.new(File.read(File.expand_path('./partials/url_methods.tt', __dir__))).result(binding) -%> def to_s self.class.to_s.sub('Page', ' Page') end # Components <%- if automation == 'selenium' -%> def header Header.new(driver.find_element(id: 'customer_menu_top')) end <%- elsif automation == 'watir' -%> def header Header.new(browser.element(id: 'customer_menu_top')) end <%- end -%> end <%- end -%>
Version data entries
9 entries across 9 versions & 1 rubygems