This fixes an issue with tests passing in Safari 10 but Sauce Labs throwing an error:
Error checking test results: Error: [text([{"ELEMENT":"0"}])] Error response status: 10, , StaleElementReference - An element command failed because the referenced element is no longer attached to the DOM. Selenium error: Element is no longer attached to the DOM (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 8 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/stale_element_reference.html
Build info: version: '2.48.0', revision: 'b7b081a', time: '2015-10-07 15:48:56'
System info: host: 'itako21022.prod.miso', ip: '10.100.35.164', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_102'
Driver info: org.openqa.selenium.safari.SafariDriver
Capabilities [{browserName=safari, takesScreenshot=true, javascriptEnabled=true, version=10.0.1, cssSelectorsEnabled=true, platform=MAC, secureSsl=true}]
Session ID: null
This fixes an issue with tests passing in Safari 10 but Sauce Labs throwing an error: