source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_button.rb
Ruby
bsd-3-clause
46
master
4,516
module OperaWatir class QuickButton < QuickWidget include ClickableItem # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:button] end ###################################################################### # Checks if the bu...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_editfield.rb
Ruby
bsd-3-clause
46
master
3,960
module OperaWatir class QuickEditField < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:editfield] end ###################################################################### # Sets focus to the edit field by clic...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_widget.rb
Ruby
bsd-3-clause
46
master
19,347
module OperaWatir class QuickWidget include DesktopCommon include DesktopContainer include Deprecated ConditionTimeout = 10.0 # @private # window_id is set if constructor is called on a (parent) window # location is set is this is called on a (parent) widget def initialize(container,...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_treeview.rb
Ruby
bsd-3-clause
46
master
746
module OperaWatir class QuickTreeView < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:treeview] end #Should rather use what's already in browser # @private def treeitems treeitems = driver.getQuickWidg...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_griditem.rb
Ruby
bsd-3-clause
46
master
211
module OperaWatir class QuickGridItem < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:griditem] end end end
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_dialogtab.rb
Ruby
bsd-3-clause
46
master
576
module OperaWatir class QuickDialogTab < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:dialogtab] end ###################################################################### # Switches to the dialog tab by clicki...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_find.rb
Ruby
bsd-3-clause
46
master
210
module OperaWatir class QuickFind < QuickDropdown # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:quickfind] end end end
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_thumbnail.rb
Ruby
bsd-3-clause
46
master
732
module OperaWatir class QuickThumbnail < QuickButton # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:thumbnail] end ###################################################################### # Drag and drop this speeddial onto th...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_searchfield.rb
Ruby
bsd-3-clause
46
master
1,136
module OperaWatir class QuickSearchField < QuickEditField # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:search] end ###################################################################### # Enters the search text into the se...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_checkbox.rb
Ruby
bsd-3-clause
46
master
1,781
module OperaWatir class QuickCheckbox < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:checkbox] end ###################################################################### # Checks if the checkbox is checked ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_radiobutton.rb
Ruby
bsd-3-clause
46
master
218
module OperaWatir class QuickRadioButton < QuickCheckbox # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:radiobutton] end end end
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_label.rb
Ruby
bsd-3-clause
46
master
206
module OperaWatir class QuickLabel < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:label] end end end
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_gridlayout.rb
Ruby
bsd-3-clause
46
master
215
module OperaWatir class QuickGridLayout < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:gridlayout] end end end
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/quickwidgets/quick_treeitem.rb
Ruby
bsd-3-clause
46
master
6,797
module OperaWatir class QuickTreeItem < QuickWidget # @private # Checks the type of the widget is correct def correct_type? @element.getType == WIDGET_ENUM_MAP[:treeitem] end ###################################################################### # Set focus to the tree item by clicking...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/compat/collection.rb
Ruby
bsd-3-clause
46
master
3,699
class OperaWatir::Collection # Aliases that Watir1 defines for certain attributes ATTRIBUTE_ALIASES = { :url => :href, :class => :class_name, :tag => :tag_name } # Welcome to Hacksville, population: too many # Creates a new selector based on the arguments given to the Watir 1 # browser method...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/compat/element_finders.rb
Ruby
bsd-3-clause
46
master
4,314
module OperaWatir::Compat::ElementFinders def self.def_element(tag, plural, opts={}, &blk) blk = block_given? ? blk : lambda {|selector| selector.tag tag} default_method = opts[:how] || :id define_method tag do |*arguments| OperaWatir::Collection.new(self).tap do |c| blk.call c.selector ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/compat/element.rb
Ruby
bsd-3-clause
46
master
4,365
class OperaWatir::Element include Deprecated # # Gets the attribute called name. # # @param [String, Symbol] name The name of the attribute to get. # @return [String] The value of the attribute. # def attr(name) node.getAttribute(name.to_s) || '' end # # Check the existence ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/compat/window.rb
Ruby
bsd-3-clause
46
master
1,730
module OperaWatir module Compat module Window include Deprecated # # Checks whether the body has the given text in it. # # @param [String] str Text to search for. # @return [Boolean] true if the body contains the given text, # false otherwise # def contain...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
lib/operawatir/compat/browser.rb
Ruby
bsd-3-clause
46
master
416
module OperaWatir module Compat module Browser extend Forwardable def method_missing(method, *args, &blk) if active_window.respond_to? method active_window.send(method, *args, &blk) else super end end # Class#type is defined by Ruby, it will ne...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
utils/Rakefile
Ruby
bsd-3-clause
46
master
1,865
require "rubygems" require "spec" require "spec/rake/spectask" require "pathname" all_tests = {} all_files = Dir["**/*.rb"] all_files.each do |filename| if filename =~ /\// sub = filename.split("/") subfilename = sub[1] unless all_tests.has_key?(sub[0]) all_tests.merge!({sub[0] => {}}) end ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
utils/formatters/new_spartan_formatter.rb
Ruby
bsd-3-clause
46
master
1,142
# SpartanFormatter is intended for use with Opera's internal testing # environment SPARTAN. require 'rspec/core/formatters/base_text_formatter' class SpartanFormatter < RSpec::Core::Formatters::BaseTextFormatter def initialize(output) super(output) @groups = [] end def example_group_started(example_gr...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
utils/formatters/spartan_formatter.rb
Ruby
bsd-3-clause
46
master
741
# SpartanFormatter is intended for use with Opera's internal testing # environment SPARTAN. require 'rspec/core/formatters/base_text_formatter' class SpartanFormatter < RSpec::Core::Formatters::BaseTextFormatter def example_failed(example) message = "#{example.description}\tFAILED\n" output.print message ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
utils/formatters/operahelper_formatter.rb
Ruby
bsd-3-clause
46
master
1,126
# OperaHelperFormatter is intended for use with OperaHelper, which can # be loaded using # # require "operawatir/helper" # # in your RSpec test suite. class OperaHelperFormatter < Spec::Runner::Formatter::BaseTextFormatter def example_failed (example, counter, failure) output.puts message example, colorize_fai...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/matchers.rb
Ruby
bsd-3-clause
46
master
1,827
RSpec::Matchers.define :close_window do match { |actual| actual > 0 } failure_message_for_should do |window_id| "expected close_window to close window, but window_id returned is not valid: #{window_id}" end end RSpec::Matchers.define :close_dialog do |expected| match { |window_id| window_id > 0 } fai...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/server.rb
Ruby
bsd-3-clause
46
master
1,927
# encoding: utf-8 require 'sinatra/base' class WatirSpec::Server < ::Sinatra::Base set :app_file, __FILE__ set :root, File.dirname(__FILE__) set :public, lambda { File.join(root, 'fixtures')} set :static, true set :run, false set :environment, :production set :bind, 'l...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/guards.rb
Ruby
bsd-3-clause
46
master
1,139
module WatirSpec class Guard attr_accessor :type, :browsers, :data def initialize(type, browsers, data={}) self.type, self.browsers, self.data = type, browsers, data WatirSpec.guards << self end def guarded?(browser) WatirSpec.guarded? || browsers.include?(browser.name) en...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/watirspec.rake
Ruby
bsd-3-clause
46
master
1,086
begin require 'rspec' rescue LoadError begin require 'rubygems' require 'rspec' rescue LoadError puts <<-EOS To use rspec for testing you must install rspec gem: gem install rspec EOS exit(0) end end require 'rspec/core/rake_task' namespace :watirspec do desc "Run the spec...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/watirspec_helper.rb
Ruby
bsd-3-clause
46
master
899
# encoding: utf-8 $LOAD_PATH.unshift File.dirname(__FILE__) $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'rspec' require 'guards' require 'server' require 'operawatir/helper' OperaWatir.api = 2 RSpec.configure do |config| config.mock_with :rr end module WatirSpec extend self attr_acces...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/watirspec_desktophelper.rb
Ruby
bsd-3-clause
46
master
990
# encoding: utf-8 $LOAD_PATH.unshift File.dirname(__FILE__) $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'rspec' require 'guards' require 'server' require 'operawatir/desktop_helper' OperaWatir.api = 2 RSpec.configure do |config| config.mock_with :rr end module WatirSpec extend self at...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/utils_spec.rb
Ruby
bsd-3-clause
46
master
928
require File.expand_path('../../watirspec_helper', __FILE__) describe OperaWatir::Utils do before(:all) { @utils = browser.utils } describe '#core_version' do it 'it matches a core version number' do @utils.core_version.should match /\d+\.\d+\.\d+/ end end describe '#os' do it 'is not empt...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/keys_spec.rb
Ruby
bsd-3-clause
46
master
1,573
require File.expand_path('../../watirspec_helper', __FILE__) # # TODO # =begin describe OperaWatir::Keys do before(:each) { browser.url = fixture('keys.html') } let(:keys) { browser.keys } let(:keyboard) { window.pre(:id => 'log').text } subject { keyboard } describe '#down' do ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/element_spec.rb
Ruby
bsd-3-clause
46
master
2,782
require File.expand_path('../../watirspec_helper', __FILE__) require 'tmpdir' describe OperaWatir::Element do describe '#click' do # TODO: Move to watirspec it 'clicks LABEL elements tied to form submit' do browser.url = fixture('label_submit.html') window.find_by_tag('label').click window...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/window_spec.rb
Ruby
bsd-3-clause
46
master
1,944
require File.expand_path('../../watirspec_helper', __FILE__) require 'tmpdir' describe OperaWatir::Window do describe '#visual_hash' do before :each do browser.url = fixture('boxes.html') @reference = window.visual_hash end it 'returns a hash' do @reference.should match /^(0x)[a-f0-9...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/screenshot_spec.rb
Ruby
bsd-3-clause
46
master
1,602
require File.expand_path('../../watirspec_helper', __FILE__) require 'tmpdir' RSpec::Matchers.define :save_file do match { |filename| File.exists? filename } end RSpec::Matchers.define :be_boolean do match { |variable| !!variable == variable } end describe 'Screenshot' do before :all do browser.url = fixt...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/preferences_spec.rb
Ruby
bsd-3-clause
46
master
7,957
# -*- coding: utf-8 -*- require File.expand_path('../../watirspec_helper', __FILE__) describe OperaWatir::Preferences do before :all do @prefs = browser.preferences @old_prefs = @prefs.to_a end describe '#new' do it 'constructs a new instance' do @prefs.should exist @prefs.should be_kin...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/browser_spec.rb
Ruby
bsd-3-clause
46
master
2,628
require File.expand_path('../../watirspec_helper', __FILE__) describe OperaWatir::Browser do # Note: This method is deprecated, but still needs to be tested. describe '#opera_action' do it 'executes the specified action' do browser.url = fixture('input_fields_value.html') window.find_by_id('one')....
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/spatnav_spec.rb
Ruby
bsd-3-clause
46
master
1,935
require File.expand_path('../../watirspec_helper', __FILE__) describe OperaWatir::Spatnav do before :each do browser.url = fixture('grid.html') @spatnav = browser.spatnav end describe '#up' do it 'selects the correct links when navigating up' do @spatnav.up window.execute_script("docume...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/core/actions_spec.rb
Ruby
bsd-3-clause
46
master
5,631
require File.expand_path('../../watirspec_helper', __FILE__) describe OperaWatir::Actions do before :each do @actions = browser.actions end it 'is available on the browser object' do browser.should.respond_to? :actions actions = browser.actions [:key_down, :key_up, :send_keys, :click_and_hold...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/desktopbrowser_spec.rb
Ruby
bsd-3-clause
46
master
15,523
# encoding: utf-8 require File.expand_path('../../watirspec_desktophelper', __FILE__) describe 'DesktopBrowser' do let(:addressfield) { browser.quick_toolbar(:name, "Document Toolbar").quick_addressfield(:name, "tba_address_field") } before :all do browser.url = fixture('onclick.html') # simple #@win...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickgriditem_spec.rb
Ruby
bsd-3-clause
46
master
416
require File.expand_path('../../watirspec_desktophelper', __FILE__) describe 'QuickItem' do #let(:widget) { browser.quick_label(:name, "label_for_Name_edit") } #subject { widget } #it_behaves_like "a widget" #its(:type) { should == :griditem } describe '#quick_griditem' do it 'constructs gri...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickdialogtab_spec.rb
Ruby
bsd-3-clause
46
master
763
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickDialogTab' do before(:all) do browser.open_dialog_with_action("New Preferences Dialog", "Show preferences").should > 0 end after(:all) do browser.close_all_dialogs ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quicktreeitem_spec.rb
Ruby
bsd-3-clause
46
master
6,533
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickTreeItem' do describe 'a widget' do before(:all) do browser.open_window_with_key_press("Bookmarks Panel Window", "b", :ctrl, :shift) end after(:all) do browse...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickwindow_spec.rb
Ruby
bsd-3-clause
46
master
3,426
# encoding: utf-8 require File.expand_path('../../watirspec_desktophelper', __FILE__) describe 'QuickWindow' do let(:documentwindow) { browser.quick_window(:name, "Document Window") } let(:browserwindow) { browser.quick_window(:name, "Browser Window") } let(:nonexisting_window) { browser.quick_window(:name, "Doc...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quicktab_spec.rb
Ruby
bsd-3-clause
46
master
4,725
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickTab' do let(:url1) { "http://t/platforms/desktop/automated/resources/documents/page1.html" } let(:url2) { "http://t/platforms/desktop/automated/resources/documents/page2.html" ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickmenuitem_spec.rb
Ruby
bsd-3-clause
46
master
6,835
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickMenuItem' do let(:addressfield) { browser.quick_toolbar(:name, "Document Toolbar").quick_addressfield(:name, "tba_address_field") } let(:menuitem) { browser.quick_menuitem(:n...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickdropdown_spec.rb
Ruby
bsd-3-clause
46
master
1,156
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickDropdown' do before(:all) do browser.open_dialog_with_action("New Preferences Dialog", "Show preferences", 0).should > 0 end after(:all) do browser.close_all_tabs ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickbutton_spec.rb
Ruby
bsd-3-clause
46
master
12,429
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickButton' do let(:url) { "http://t/platforms/desktop/automated/resources/documents/page1.html" } let(:url2) { "http://t/platforms/desktop/automated/resources/documents/page2.html...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickradiobutton_spec.rb
Ruby
bsd-3-clause
46
master
669
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickRadiobox' do before(:all) do browser.open_dialog_with_action("New Preferences Dialog", "Show preferences", 4) browser.quick_treeview(:name, "Advanced_treeview").quick_tre...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quicktreeview_spec.rb
Ruby
bsd-3-clause
46
master
703
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickTreeView' do before(:all) do browser.open_dialog_with_action("New Preferences Dialog", "Show preferences", 4).should > 0 end after(:all) do browser.close_all_dia...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickeditfield_spec.rb
Ruby
bsd-3-clause
46
master
2,667
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickEditField' do before(:all) do browser.open_dialog_with_action("New Preferences Dialog", "Show preferences", 1).should open_dialog end after(:all) do browser.close...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickfind_spec.rb
Ruby
bsd-3-clause
46
master
827
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickFind' do before(:all) do browser.open_dialog_with_action("New Preferences Dialog", "Show preferences", 4).should > 0 browser.quick_treeview(:name, "Advanced_treeview...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickwidget_spec.rb
Ruby
bsd-3-clause
46
master
4,599
require File.expand_path('../../watirspec_desktophelper', __FILE__) describe 'QuickWidget' do let(:home) { browser.quick_window(:name, "Document Window").quick_toolbar(:name, "Document Toolbar").quick_button(:name, "tbb_Stop_Reload")} describe '#open_window_with_hover' do it 'opens window on hover' do ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickmenu_spec.rb
Ruby
bsd-3-clause
46
master
1,714
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickMenu' do let(:addressfield) { browser.quick_toolbar(:name, "Document Toolbar").quick_addressfield(:name, "tba_address_field") } let(:menu) { browser.quick_menu(:name, "Toolbar E...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickgridlayout_spec.rb
Ruby
bsd-3-clause
46
master
421
require File.expand_path('../../watirspec_desktophelper', __FILE__) describe 'QuickLayout' do #let(:widget) { browser.quick_label(:name, "label_for_Name_edit") } #subject { widget } #it_behaves_like "a widget" #its(:type) { should == :gridlayout } describe '#quick_gridlayout' do it 'construct...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickthumbnail_spec.rb
Ruby
bsd-3-clause
46
master
2,098
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickThumbnail' do before(:all) do browser.open_window_with_key_press("Document Window", "t", :ctrl) end let(:widget) { browser.quick_thumbnail(:name, "Speed Dial 1") } ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quicksearchfield_spec.rb
Ruby
bsd-3-clause
46
master
1,022
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickSearchField' do let(:widget) { browser.quick_window(:name, "Document Window").quick_toolbar(:name, "Document Toolbar").quick_searchfield(:name, "tbs_MainSearch") } subject {...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickaddressfield_spec.rb
Ruby
bsd-3-clause
46
master
2,219
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickAddressfield' do let(:addressfield) { browser.quick_toolbar(:name, "Document Toolbar").quick_addressfield(:name, "tba_address_field") } let(:unknown_addressfield) { browser...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quicklabel_spec.rb
Ruby
bsd-3-clause
46
master
655
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickLabel' do before(:all) do browser.open_dialog_with_key_press("Add Bookmark Dialog", 'd', :ctrl) end after(:all) do browser.close_all_dialogs end l...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/quickcheckbox_spec.rb
Ruby
bsd-3-clause
46
master
1,462
require File.expand_path('../../watirspec_desktophelper', __FILE__) require File.expand_path('../shared/shared', __FILE__) describe 'QuickCheckbox' do before(:each) do browser.open_dialog_with_action("New Preferences Dialog", "Show preferences", 4) browser.quick_treeview(:name, "Advanced_treeview").quick_tr...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/operawatir/desktop/shared/shared.rb
Ruby
bsd-3-clause
46
master
3,696
require File.expand_path('../../../watirspec_desktophelper', __FILE__) shared_examples_for 'a button' do describe '#default?' do it "returns a boolean" do [true, false].should include widget.default? end end describe '#value' do it "returns 0 or 1" do [0, 1].should include widget.value ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/fire_event/fire_event.rb
Ruby
bsd-3-clause
46
master
8,475
require "operawatir/helper" describe "fire_event" do after(:each) do browser.p(:id, "result").verify_contains("PASS").should == true end # onMouseOver it "should fire event onMouseOver with symbol" do browser.goto files + "onMouseOver.html" browser.elements(:xpath, "//form/*").each { |e| e.fire_e...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/forms_spec.rb
Ruby
bsd-3-clause
46
master
917
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Forms" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of forms in the container" do browser.forms.length.should == 2 end en...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/div_spec.rb
Ruby
bsd-3-clause
46
master
9,464
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Div" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end # Exists method describe "#exists?" do it "returns true if the element exists" do browser.div(:id, "header").should exist ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/hiddens_spec.rb
Ruby
bsd-3-clause
46
master
857
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Hiddens" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of hiddens" do browser.hiddens.length.should == 1 end end descri...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/table_rows_spec.rb
Ruby
bsd-3-clause
46
master
1,752
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "TableRows" do before :each do browser.goto(WatirSpec.files + "/tables.html") end describe "#length" do bug "WTR-354", :watir do it "returns the correct number of cells (table context)" do browser.table(:id, '...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/watir_compatibility_spec.rb
Ruby
bsd-3-clause
46
master
4,695
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "IE" do # Class methods it "responds to .speed" do WatirSpec.implementation.browser_class.should respond_to("speed") end it "responds to .speed=" do WatirSpec.implementation.browser_class.should respond_to("speed=") end...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/dels_spec.rb
Ruby
bsd-3-clause
46
master
2,114
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Dels" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of dels" do browser.dels.length.should == 5 end end describe "#[]" do ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/lis_spec.rb
Ruby
bsd-3-clause
46
master
798
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Lis" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of lis" do browser.lis.length.should == 18 end end describe "#[]" do ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/table_headers_spec.rb
Ruby
bsd-3-clause
46
master
1,582
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) bug "WTR-357", :watir do describe "TableHeaders" do before :each do browser.goto(WatirSpec.files + "/tables.html") end describe "#length" do it "returns the correct number of table theads (page context)" do browse...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/ins_spec.rb
Ruby
bsd-3-clause
46
master
6,655
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Ins" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end # Exists method describe "#exist?" do it "returns true if the 'ins' exists" do browser.ins(:id, "lead").should exist br...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/spec_helper.rb
Ruby
bsd-3-clause
46
master
211
require File.expand_path("../watirspec_helper", __FILE__) module LegacyWatirSpecHelpers def browser super.active_window end end RSpec.configure do |config| config.include LegacyWatirSpecHelpers end
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/hns_spec.rb
Ruby
bsd-3-clause
46
master
1,082
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) bug "WTR-345", :watir do describe "H1s", "H2s", "H3s", "H4s", "H5s", "H6s" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of h1s" do ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/hidden_spec.rb
Ruby
bsd-3-clause
46
master
4,438
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Hidden" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end # Exist method describe "#exists?" do it "returns true if the element exists" do browser.hidden(:id, 'new_user_intere...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/del_spec.rb
Ruby
bsd-3-clause
46
master
6,647
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Del" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end # Exists method describe "#exist?" do it "returns true if the 'del' exists" do browser.del(:id, "lead").should exist br...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/collections_spec.rb
Ruby
bsd-3-clause
46
master
460
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Collections" do before :each do browser.goto(WatirSpec.files + "/collections.html") end it "returns inner elements of parent element having different html tag" do browser.span(:id => "a_span").divs.size.should == 2 end ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/spans_spec.rb
Ruby
bsd-3-clause
46
master
2,826
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Spans" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of spans" do browser.spans.length.should == 6 end end describe "#[]" do...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/checkbox_spec.rb
Ruby
bsd-3-clause
46
master
11,871
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "CheckBox" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end # Exists method describe "#exists?" do it "returns true if the checkbox button exists" do browser.checkbox(:id, "n...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/table_footer_spec.rb
Ruby
bsd-3-clause
46
master
3,832
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) bug "WTR-358", :watir do describe "TableFooter" do before :each do browser.goto(WatirSpec.files + "/tables.html") end describe "#exists?" do it "returns true if the table tfoot exists (page context)" do browser.t...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/ol_spec.rb
Ruby
bsd-3-clause
46
master
3,010
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) bug "WTR-333", :watir do describe "Ol" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end # Exists method describe "#exist?" do it "returns true if the 'ol' exists" do browser...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/element_spec.rb
Ruby
bsd-3-clause
46
master
5,210
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Element" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end =begin describe ".new" do it "finds elements matching the conditions when given a hash of :how => 'what' arguments" do ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/frame_spec.rb
Ruby
bsd-3-clause
46
master
6,731
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Frame" do before :each do browser.goto(WatirSpec.files + "/frames.html") end it "handles crossframe javascript" do browser.frame(:id, "frame_1").text_field(:name, 'senderElement').value.should == 'send_this_value' brows...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/table_header_spec.rb
Ruby
bsd-3-clause
46
master
4,070
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) bug "WTR-357", :watir do describe "TableHeader" do before :each do browser.goto(WatirSpec.files + "/tables.html") end describe "#exists?" do it "returns true if the table theader exists (page context)" do browser...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/filefields_spec.rb
Ruby
bsd-3-clause
46
master
898
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "FileFields" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the correct number of file fields" do browser.file_fields.length.should == 2 ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/images_spec.rb
Ruby
bsd-3-clause
46
master
810
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Images" do before :each do browser.goto(WatirSpec.files + "/images.html") end describe "#length" do it "returns the number of images" do browser.images.length.should == 9 end end describe "#[]" do it "re...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/metas_spec.rb
Ruby
bsd-3-clause
46
master
738
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Metas" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of meta elements" do browser.metas.length.should == 2 end end desc...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/labels_spec.rb
Ruby
bsd-3-clause
46
master
865
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Labels" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of labels" do browser.labels.length.should == 26 # changed this from 25 - ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/link_spec.rb
Ruby
bsd-3-clause
46
master
6,788
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Link" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end # Exists method describe "#exist?" do it "returns true if the link exists" do browser.link(:id, 'link_2').should exist ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/area_spec.rb
Ruby
bsd-3-clause
46
master
3,565
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Area" do before :each do browser.goto(WatirSpec.files + "/images.html") end # Exists method describe "#exist?" do it "returns true if the area exists" do browser.area(:id, "NCE").should exist browser.area(:id...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/uls_spec.rb
Ruby
bsd-3-clause
46
master
880
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) bug "WTR-332", :watir do describe "Uls" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of uls" do browser.uls.length.should == 2 ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/table_cell_spec.rb
Ruby
bsd-3-clause
46
master
2,419
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "TableCell" do before :each do browser.goto(WatirSpec.files + "/tables.html") end # Exists describe "#exists?" do it "returns true when the table cell exists" do browser.cell(:id, 't1_r2_c1').should exist brow...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/text_field_spec.rb
Ruby
bsd-3-clause
46
master
12,990
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "TextField" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end # Exists method describe "#exists?" do it "returns true if the element exists" do browser.text_field(:id, 'new_use...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/strongs_spec.rb
Ruby
bsd-3-clause
46
master
826
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Strongs" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of divs" do browser.strongs.length.should == 2 end end describe "#[]"...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/browser_spec.rb
Ruby
bsd-3-clause
46
master
9,936
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Browser" do describe "#exists?" do it "returns true if we are at a page" do browser.goto(WatirSpec.files + "/non_control_elements.html") browser.should exist end =begin it "returns false after IE#close" do ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/dt_spec.rb
Ruby
bsd-3-clause
46
master
5,142
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Dt" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") end # Exists method describe "#exists?" do it "returns true if the element exists" do browser.dt(:id, "experience").should exist ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/filefield_spec.rb
Ruby
bsd-3-clause
46
master
4,630
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "FileField" do before :each do browser.goto(WatirSpec.files + "/forms_with_input_elements.html") end describe "#exist?" do it "returns true if the file field exists" do browser.file_field(:id, 'new_user_portrait').sho...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/table_body_spec.rb
Ruby
bsd-3-clause
46
master
4,576
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "TableBody" do before :each do browser.goto(WatirSpec.files + "/tables.html") end describe "#exists?" do bug "WTR-357", :watir do it "returns true if the table body exists (page context)" do browser.body(:id, ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/image_spec.rb
Ruby
bsd-3-clause
46
master
8,503
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Image" do before :each do browser.goto(WatirSpec.files + "/images.html") end # Exists method describe "#exists?" do it "returns true when the image exists" do browser.image(:id, 'square').should exist browser...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/dl_spec.rb
Ruby
bsd-3-clause
46
master
5,251
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Dl" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") end # Exists method describe "#exists?" do it "returns true if the element exists" do browser.dl(:id, "experience-list").should exist ...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/ul_spec.rb
Ruby
bsd-3-clause
46
master
2,779
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Ul" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end # Exists method describe "#exist?" do it "returns true if the 'ul' exists" do browser.ul(:id, "navbar").should exist bro...
github
operasoftware/operawatir
https://github.com/operasoftware/operawatir
spec/watir2/dd_spec.rb
Ruby
bsd-3-clause
46
master
5,069
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Dd" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") end # Exists method describe "#exists?" do it "returns true if the element exists" do browser.dd(:id, "someone").should exist br...