Change Management Schedule Optimization
[integration/csit.git] / tests / optf-cmso / cmso / attlibs / HTTPUtils.py
1 import urllib
2 from selenium import webdriver 
3 import base64
4
5 class HTTPUtils:
6     """HTTPUtils is common resource for simple http helper keywords."""
7     
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)
11     
12     def ff_profile(self):
13         fp =webdriver.FirefoxProfile()
14         fp.set_preference("dom.max_script_run_time",120)
15         fp.update_preferences()
16         return fp.path 
17     
18     def b64_encode(self, instring):
19         "" 
20         return base64.b64encode(instring)
21