add getName() method for web and native elements