Class: IhealthBot::Endpoints::BloodPressure

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

Constant Summary

Constants inherited from Base

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

Class Method Summary collapse

Class Method Details

.createObject



4
5
6
7
8
9
10
11
# File 'lib/ihealth_bot/endpoints/blood_pressure.rb', line 4

def self.create
  super('Blood Pressure') do
    find('#txtHighPress').set(rand(100..150))
    find('#txtlowPress').set(rand(50..100))
    find('#txtHeartRate').set(rand(50..90))
    find('#txtRemark').set("Via iHealth Bot v#{VERSION}")
  end
end