def content(self, variableDict=None, formatted=False): """ Overrides the base WebElement content method to replace non-safe characters """ script = ScriptContainer.content(self, variableDict, formatted=formatted) script = script.replace("&", "&") script = script.replace("<", "<") script = script.replace(">", ">") return script
def __init__(self, id=None, name=None, parent=None): ScriptContainer.__init__(self) self.addClass("onLoadJavascript") self.hide()