<s> """<STR_LIT>""" <EOL> from saunter . po . webdriver . element import Element <EOL> from saunter . exceptions import ElementNotFound <EOL> from saunter . SaunterWebDriver import SaunterWebDriver <EOL> class Unicode ( Element ) : <EOL> """<STR_LIT>""" <EOL> def __set__ ( self , obj , val ) : <EOL> e = obj . driver . find_element_by_locator ( self . locator ) <EOL> e . send_keys ( val ) <EOL> def __get__ ( self , obj , cls = None ) : <EOL> e = obj . driver . find_element_by_locator ( self . locator ) <EOL> if e . tag_name in [ "<STR_LIT:input>" , "<STR_LIT>" ] : <EOL> return e . get_attribute ( "<STR_LIT:value>" ) <EOL> return e . text </s>
