Sha256: fd5016665203bdcb8223bb7b25339c57cec5c6332ae5e3c7963e44ca8eb2e7f1
Contents?: true
Size: 656 Bytes
Versions: 75
Compression:
Stored size: 656 Bytes
Contents
module RubyJmeter class DSL def html_link_parser(params={}, &block) node = RubyJmeter::HtmlLinkParser.new(params) attach_node(node, &block) end end class HtmlLinkParser attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'HtmlLinkParser' : (params[:name] || 'HtmlLinkParser') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <AnchorModifier guiclass="AnchorModifierGui" testclass="AnchorModifier" testname="#{testname}" enabled="true"/>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
75 entries across 75 versions & 1 rubygems