Sha256: 5518cee3990a6cb1643f4f163f0a8d344438e5200b5cf207a97335205ee47e3a

Contents?: true

Size: 582 Bytes

Versions: 38

Compression:

Stored size: 582 Bytes

Contents

require 'watirspec_helper'

describe Watir::Element do
  describe "#click" do
    before {
      browser.goto WatirSpec.url_for('clicks.html')
    }

    let(:clicker) { browser.element(id: "click-logger") }
    let(:log)     { browser.element(id: "log").ps.map { |e| e.text } }

    bug "https://github.com/watir/watir/issues/343", :webdriver do
      it "clicks an element with text in nested text node using text selector" do
        browser.element(text: "Can You Click This?").click
        expect(browser.element(text: "You Clicked It!")).to exist
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
watir-6.13.0 spec/watirspec/click_spec.rb
watir-6.12.0 spec/watirspec/click_spec.rb
watir-6.11.0 spec/click_spec.rb
watir-6.11.0.beta2 spec/click_spec.rb
watir-6.11.0.beta1 spec/click_spec.rb
watir-6.10.3 spec/click_spec.rb
watir-6.10.2 spec/click_spec.rb
watir-6.10.0 spec/click_spec.rb
watir-6.9.1 spec/click_spec.rb
watir-6.9.0 spec/click_spec.rb
watir-6.8.4 spec/click_spec.rb
watir-6.8.3 spec/click_spec.rb
watir-6.8.2 spec/click_spec.rb
watir-6.8.1 spec/click_spec.rb
watir-6.8.0 spec/click_spec.rb
watir-6.7.3 spec/click_spec.rb
watir-6.7.2 spec/click_spec.rb
watir-6.7.1 spec/click_spec.rb
watir-6.7.0 spec/click_spec.rb
watir-6.6.3 spec/click_spec.rb