Sha256: 9c37d162d4248986defe7c71b2cb16c6b89d487983feb3d8eb27a9f5b77c2942
Contents?: true
Size: 878 Bytes
Versions: 5
Compression:
Stored size: 878 Bytes
Contents
# frozen_string_literal: true require 'aranha/selenium/session' require 'eac_ruby_utils/core_ext' require 'ehbrs_ruby_utils/bga/urls' module EhbrsRubyUtils module Bga class Session < ::SimpleDelegator include ::EhbrsRubyUtils::Bga::Urls MESSAGE_ID = 'head_infomsg_1' common_constructor :username, :password, super_args: -> { [::Aranha::Selenium::Session.new] } # @return [EhbrsRubyUtils::Bga::Session::Player] def player(id) ::EhbrsRubyUtils::Bga::Session::Player.new(self, id) end # @return [String, nil] def message_info find_or_not_element(id: MESSAGE_ID).if_present { |v| v.text.strip } end # @return [String] def waited_message_info wait_for_click(id: MESSAGE_ID).text end require_sub __FILE__, include_modules: true, require_mode: :kernel end end end
Version data entries
5 entries across 5 versions & 1 rubygems