Skip to content

Instantly share code, notes, and snippets.

@teleservices
teleservices / gist:c2c445deda90519cba4a
Created June 13, 2014 02:05
mac_clean.bat - delete bogus hidden mac files
del /s /a:h /a:a /q ._*
del /s /a:h /a:a /q .DS_Store
rmdir /s /q .Trashes
rmdir /s /q .Spotlight-V100
rmdir /s /q .fseventsd
del /s /a:h /a:a /q autorun.inf
del /s /a:h /a:a /q icon.ico
@pause
@teleservices
teleservices / WebDriver Element Attribute Anomaly
Last active December 14, 2015 07:19
This gist shows the result of trying to use the element attribute method. The line starting with "=============>" is a raw "puts" of the attribute value.
$ rake SPEC=spec/selenium/brand/test_view_atest_spec.rb
/home/vagrant/.rbenv/versions/1.9.3-p194/bin/ruby -S rspec spec/selenium/brand/test_view_atest_spec.rb
Rack::File headers parameter replaces cache_control after Rack 1.5.
=============> find_element(:xpath, "//div[@id=\"logo-client\"]/img").attribute("src"): http://alpha.decdynamics.com/brands/atest/logo.png
F
Failures:
1) TestViewAtest test_view_a
Failure/Error: (@driver.find_element(:xpath, "//div[@id=\"logo-client\"]/img").attribute("src")).should == "../brands/atest/logo.png"