Sha256: f84043a5619091c689435e2d834bf6e7da4ae704bbc460f24496e9bc1f9709a9

Contents?: true

Size: 606 Bytes

Versions: 4

Compression:

Stored size: 606 Bytes

Contents

require File.expand_path(__FILE__ + '/../../spec_helper')

describe "Highlight Located Element" do
  it "can be enabled and disabled on the fly" do
    page.open "http://localhost:4567/jquery.html"
    page.execution_delay = 1000
    page.highlight_located_element = true
    begin
      page.text("calculator-result").should be_empty

      page.type "calculator-expression", "2 + 2"
      page.click "calculator-button" , :wait_for => :ajax, :javascript_framework => :jquery

      page.value("calculator-result").should eql("4")
    ensure
      page.highlight_located_element = false
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
browserstack-webdriver-2.40.1 spec/integration/selenium/client/api/highlight_located_element_spec.rb
browserstack-webdriver-0.0.22 spec/integration/selenium/client/api/highlight_located_element_spec.rb
browserstack-webdriver-0.0.1 spec/integration/selenium/client/api/highlight_located_element_spec.rb
bbc-selenium-webdriver-1.17.0 spec/integration/selenium/client/api/highlight_located_element_spec.rb