#{selenium 'Test the @Finally'} open('@{UsingFinally.a()}') assertTextPresent('Youhou') // Now the @Finally open('@{UsingFinally.b()}') assertTextNotPresent('Youhou') assertTextPresent('Yop') // Now the @Finally only param open('@{UsingFinally.onlytest('waxzce')}') assertTextNotPresent('onlynotwork') assertTextPresent('onlywork') //test @Finally with or without Throwable //without error open('@{UsingFinallyWithThrowable.noError()}') open('@{UsingFinallyWithThrowable.get_results()}') assertTextPresent('true true false true') //with error open('@{UsingFinallyWithThrowable.withError()}') open('@{UsingFinallyWithThrowable.get_results()}') assertTextPresent('true true true true') #{/selenium}