def verify_text(self,locator,expectedText):
        """Compare the expectedText given to the actualText which get from the element.
                               
       *expectedText* argument specifies the expectedtext you want.
        
         Example:
        | Verify text  | ${element_locator}  | ${text}  |
        
        """
        try:
            actualText=self._get_text(locator)
            assert actualText==expectedText
            self._info('Compare actual text(%s) with expected text(%s) passed'%(actualText,expectedText))
        except AssertionError:
            self._warn('Compare actual text(%s) with expected text(%s) failed'%(actualText,expectedText))
dataset/ETHPy150Open luisxiaomai/robotframework-anywherelibrary/src/AnywhereLibrary/base/element.py/Element.verify_text/original