def assert_text_in_element(element_id, text)
      elem = element_by_id(element_id)
      if RWebSpec.framework == "Watir"							
        assert_not_nil(elem.innerText, "element #{element_id} has no text")
        perform_assertion { assert(elem.innerText.include?(text), "the text #{text} not found in element #{element_id}") }
      else
        perform_assertion { 
          # this works in text field
          assert(element_value(elem).include?(text), "the text #{text} not found in element #{element_id}")
          # TODO
        }
      end
    
    end
def assert_text_in_element(element_id, text)
      elem = element_by_id(element_id)
      if RWebSpec.framework == "Watir"							
        assert_not_nil(elem.innerText, "element #{element_id} has no text")
        perform_assertion { assert(elem.innerText.include?(text), "the text #{text} not found in element #{element_id}") }
      else
        perform_assertion { 
          # this works in text field
          assert(element_value(elem).include?(text), "the text #{text} not found in element #{element_id}")
          # TODO
        }
      end
    
    end
-- Not tested
 -----