Sha256: 258e21443efc195aa95e54307a803e9b3994c984d1d51d77d761336d090e92d1

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

class JQueryUIWidgets::ProgressBar < PageObject::Elements::Div

  def minimum
    convert_to_number attribute('aria-valuemin')
  end

  def maximum
    convert_to_number attribute('aria-valuemax')
  end

  def current
    convert_to_number attribute('aria-valuenow')
  end

  private
  def convert_to_number(value)
    value = value.to_i if value
    value
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jqueryui_widgets-0.3 lib/jqueryui_widgets/progress_bar.rb