Sha256: e522e7e7dffa157831ab38bebbf01ad12106e7a506c55f8a25926202ecb73d77
Contents?: true
Size: 638 Bytes
Versions: 3
Compression:
Stored size: 638 Bytes
Contents
require_relative 'test_constants' class TestViewHelper def initialize(window_id, view_id) @view = WebConsole::View.new(window_id, view_id) javascript = File.read(TEST_JAVASCRIPT_FILE) @view.do_javascript(javascript) end def log_message_at_index(index) @view.do_javascript_function('innerTextOfBodyChildAtIndex', [index]) end def number_of_log_messages @view.do_javascript(TEST_MESSAGE_COUNT_JAVASCRIPT) end def last_log_message @view.do_javascript(TEST_MESSAGE_JAVASCRIPT) end def last_log_class @view.do_javascript(TEST_CLASS_JAVASCRIPT) end end
Version data entries
3 entries across 3 versions & 1 rubygems