original_docstring: Determines if the page is ready by checking if the first product's colour and size is displayed
docstring: Determines if the page is ready by checking if the first product's colour and size is displayed
docstring_tokens: Determines if the page is ready by checking if the first product ' s colour and size is displayed
code: def wait_until_loaded(self):
          """Determines if the page is ready by checking if the first product's colour and size is displayed"""
          try:
              WebDriverWait(self.browser, self.wait_timeout).until(
                  lambda d: self.first_product_colour_and_size.is_displayed())
          except TimeoutException:
              try:
                  self.browser.refresh()
                  WebDriverWait(self.browser, self.wait_timeout).until(
                      lambda d: self.first_product_colour_and_size.is_displayed())
              except TimeoutException:
                  return TimeoutException
code_tokens: def wait_until_loaded ( self ) : try : WebDriverWait ( self . browser , self . wait_timeout ) . until ( lambda d : self . first_product_colour_and_size . is_displayed ( ) ) except TimeoutException : try : self . browser . refresh ( ) WebDriverWait ( self . browser , self . wait_timeout ) . until ( lambda d : self . first_product_colour_and_size . is_displayed ( ) ) except TimeoutException : return TimeoutException
short_docstring: Determines if the page is ready by checking if the first product's colour and size is displayed
short_docstring_tokens: Determines if the page is ready by checking if the first product ' s colour and size is displayed
comment: """Determines if the page is ready by checking if the first product's colour and size is displayed"""