Class: IhealthBot::Endpoints::Weight

Inherits:
Base
  • Object
show all
Defined in:
lib/ihealth_bot/endpoints/weight.rb

Constant Summary

Constants inherited from Base

Base::AUTOCOMPLETE_XPATH, Base::ENDPOINT_NAVIGATION_XPATH, Base::ERROR_BOX_XPATH, Base::LEFT_NAVIGATION_XPATH, Base::MAIN_NAVIGATION_XPATH

Class Method Summary collapse

Class Method Details

.createObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/ihealth_bot/endpoints/weight.rb', line 4

def self.create
  super('Weight') do
    find('#txtWeight').set(rand(220..240))
    find('#txtFatValue').set(rand(10..15))
    find('#txtBoneValue').set(rand(1..10))
    find('#txtWaterValue').set(rand(20..85))
    find('#txtMuscaleValue').set(rand(10..100))
    find('#txtVFR').set(rand(10..15))
    find('#txtRemark').set("Via iHealth Bot v#{VERSION}")
  end
end