Sha256: bb2245a56b0781cb90251e38e0decf2c8d48ea3931d64079680da3ac53a75a7b

Contents?: true

Size: 637 Bytes

Versions: 1

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

require 'watirspec_helper'

describe Watir::Browser do
  before do
    browser.goto WatirSpec.url_for('special_chars.html')
  end

  it 'finds elements with single quotes' do
    expect(browser.div(text: "single 'quotes'")).to exist
  end

  it 'finds elements with non-standard character locators' do
    expect(browser.div('we{ird' => 'foo')).to exist
    expect(browser.div('we{ird': 'foo')).to exist
  end

  it 'finds element with underscored attribute' do
    expect(browser.div('underscored_attribute' => 'true')).to exist
    expect(browser.div('underscored_attribute' => true)).to exist
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-7.2.0 spec/watirspec/special_chars_spec.rb