Monthly Archives: December 2013

Close Excel without prompting to save

Problem Have you ever been prompted to save changes to your Microsoft Excel file when you did make any changes? From a Microsoft support article, one of the common reasons for this is the re-calculation of “volatile functions”. For example. … Continue reading

Posted in Automation | Tagged , , | Leave a comment

Element#text includes visible descendant text nodes

While writing a section for Watirways on the Element#text method, it seemed fairly evident that the method returned an element’s text. For example, given the html: Then the text of the div element is: Writing this in the book did … Continue reading

Posted in Watir, Watir-Classic, Watir-Webdriver | Tagged | Leave a comment

Comparing arrays in an order-independent manner using minitest

Problem After reading this question on StackOverflow, I was curious how you could compare 2 arrays in an order-independent way. For example, the spec: Will fail with the exception: We want the spec to pass since all elements in the … Continue reading

Posted in Minitest | 1 Comment