Ejemplo n.º 1
0
 def wrapper(*args, **kwargs):
     try:
         function(*args, **kwargs)
     except Exception:
         splinter_tests.screenshot(filename)
         raise
Ejemplo n.º 2
0
 def wrapper(*args, **kwargs):
     try:
         function(*args, **kwargs)
     except Exception:
         splinter_tests.screenshot(filename)
         raise
Ejemplo n.º 3
0
def screenshot_on_exception(filename):
    try:
        yield
    except Exception:
        splinter_tests.screenshot(filename)
        raise
Ejemplo n.º 4
0
def screenshot_on_exception(filename):
    try:
        yield
    except Exception:
        splinter_tests.screenshot(filename)
        raise