Skip to content
Browse files

Forgot to add the spec to source control...

  • Loading branch information...
1 parent 54695a6 commit db7109513c1841b43f82a76b6d7df47a58d240b6 @ph7 ph7 committed
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/integration/api/highlight_located_element_spec.rb
View
16 test/integration/api/highlight_located_element_spec.rb
@@ -0,0 +1,16 @@
+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
+ 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")
+ page.highlight_located_element = false
+ end
+
+end

0 comments on commit db71095

Please sign in to comment.
Something went wrong with that request. Please try again.