Sha256: b92f2b773ad0fc4707f68bc027ad276856dcacb60fb88407560becdd18a3b285

Contents?: true

Size: 750 Bytes

Versions: 2

Compression:

Stored size: 750 Bytes

Contents

class Stardate
  include Symbiont

  url_is "http://localhost:9292/stardate"

  link :calculator, href: "stardate_calc"

  frame(id: "fancybox-frame") do |context|
    text_field :tng_stardate, name: "stardateTNGValue", frame: context
    text_field :tos_stardate, name: "stardateTOSValue", frame: context
    text_field :tng_value,    name: "calendarTNGValue", frame: context
    text_field :tos_value,    name: "calendarTOSValue", frame: context
    button     :convert_tng,  id:   "convertTNG",       frame: context
    button     :convert_tos,  id:   "convertTOS",       frame: context
  end

  def calculate_tng(value)
    self.wait_for_app(2)
    self.tng_stardate = value
    self.convert_tng
    self.tng_value
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.2.1 specs/pages/stardate.rb
symbiont-0.2.0 specs/pages/stardate.rb