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