Exemplo n.º 1
0
def before_all(context):  
    shutil.copytree('../cgi-bin','./cgi-bin')
    shutil.copytree('../themes','./themes')
    context.server = cgi_server.get_me_a_server()
    context.thread = threading.Thread(target=context.server.serve_forever)
    context.thread.start()
    desired_capabilities = webdriver.DesiredCapabilities.CHROME
    #desired_capabilities = {'browserName':'chrome'}
    desired_capabilities['applicationCacheEnabled'] = False
    context.browser = webdriver.Chrome()
Exemplo n.º 2
0
def during():
    server = cgi_server.get_me_a_server()
    server.serve_forever()