old_contents: # -*- coding: utf-8 -*-
  from selenium_tests.selenium_test_base import SeleniumTestBase
  
  
  class TestHideApplication(SeleniumTestBase):
      def test_hide_application(self):
          driver = self.driver
          with self.login():
              self.wait_for(
                  lambda:
                  driver.find_element_by_css_selector(
                      "#applistentries > li > a > span").text != "Loading")
  
              # Click on the search box
              search_box = driver.find_element_by_name("q")
              search_box.clear()
              search_box.send_keys('foobarheho')
  
              self.wait_for(
                  lambda:
                  driver.find_element_by_css_selector(
                      "#applistentries > li").value_of_css_property(
                          'display') == "none")
  
new_contents: # -*- coding: utf-8 -*-
  from selenium_tests.selenium_test_base import SeleniumTestBase
  
  
  class TestHideApplication(SeleniumTestBase):
      def test_hide_application(self):
          driver = self.driver
          with self.login():
              self.wait_for(
                  lambda:
                  driver.find_element_by_css_selector(
                      "#applistentries > li > a > span").text != "Loading")
  
              # Click on the search box
              search_box = driver.find_element_by_name("q")
              search_box.clear()
              search_box.send_keys('foobarheho')
              print(driver.find_element_by_css_selector(
                      "#applistentries > li"))
              self.wait_for(
                  lambda:
                  driver.find_element_by_css_selector(
                      "#applistentries > li").value_of_css_property(
                          'display') == "none")
  
subject: Add print for debug