@selenium.wait_for_element "//div[@id='newCustomersCopy']/ul/li[2]" @selenium.wait_for_condition "$('#blocker').css('display') == 'block'", 2 # Note that, within wait_for_condition, I did NOT need to use # this.browserbot.getCurrentWindow().$() and instead I could # simply refer to $()