Deprecated method set_img_src (wrong functionality)
mwd1993 opened this issue · 0 comments
mwd1993 commented
Line 1080 in 38505ba
This method actually tries to set a link, so the functionality of the method is wrong.
Also, we need to update the method doc to let users know this method is Deprecated
Should change the method from:
def set_img_src(self, _str):
"""
Sets an images source (external url or local url)
returns: self
"""
self.add_attribute('src="' + _str + '"')
return
To this:
def set_img_src(self, _str):
"""
(Deprecated - use set_img_background instead)
Sets an images background
returns: self
"""
self.set_img_background(_str)
return
Simply rerouting it to the real method 'set_img_background' (though set_img_src is deprecated, we will be keeping it for backwards compatibility)