class RubyJmeter::CssjqueryExtractor
Attributes
doc[RW]
Public Class Methods
new(params={})
click to toggle source
# File lib/ruby-jmeter/dsl/cssjquery_extractor.rb, line 13 def initialize(params={}) testname = params.kind_of?(Array) ? 'CssjqueryExtractor' : (params[:name] || 'CssjqueryExtractor') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="#{testname}" enabled="true"> <stringProp name="HtmlExtractor.refname"/> <stringProp name="HtmlExtractor.expr"/> <stringProp name="HtmlExtractor.attribute"/> <stringProp name="HtmlExtractor.default"/> <stringProp name="HtmlExtractor.match_number"/> <stringProp name="HtmlExtractor.extractor_impl"/> <boolProp name="HtmlExtractor.default_empty_value"/> </HtmlExtractor>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end