spec/spec_helper.rb in watir-webdriver-0.3.5 vs spec/spec_helper.rb in watir-webdriver-0.3.6
- old
+ new
@@ -15,9 +15,13 @@
require 'rspec'
include Watir
include Watir::Exception
+if ENV['ALWAYS_LOCATE'] == "false"
+ Watir.always_locate = false
+end
+
WEBDRIVER_SELECTORS = [:class, :class_name, :css, :id, :name, :tag_name, :xpath]
if ENV['TRAVIS']
ENV['DISPLAY'] = ":99.0"
end
\ No newline at end of file