2 from selenium import webdriver
6 """HTTPUtils is common resource for simple http helper keywords."""
8 def url_encode_string(self, barestring):
9 """URL Encode String takes in a string and converts into 'percent-encoded' string"""
10 return urllib.quote_plus(barestring)
13 fp =webdriver.FirefoxProfile()
14 fp.set_preference("dom.max_script_run_time",120)
15 fp.update_preferences()
18 def b64_encode(self, instring):
20 return base64.b64encode(instring)