Skip to content

Instantly share code, notes, and snippets.

@teleservices
teleservices / gist:c2c445deda90519cba4a
Created Jun 13, 2014
mac_clean.bat - delete bogus hidden mac files
View gist:c2c445deda90519cba4a
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 Dec 14, 2015
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.
View WebDriver Element Attribute Anomaly
$ 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"