#{selenium 'Test the @Before'} open('@{UsingBefore.a('Guillaume')}') assertTextPresent('Youhou Guillaume') // Now the @Finally open('@{UsingBefore.b('Guillaume')}') assertTextNotPresent('Youhou') assertTextPresent('Yop') // Try to call directly UsingBefore.kiki open('/usingbefore/kiki') assertTextPresent('Not found') // Try to call a private method open('/usingbefore/isPrivate') assertTextPresent('Not found') // Try the priority of @Before open('/usingbeforewithpriority/index') assertTextPresent('yupyopyipyapdone') // Try the only param of @before open('@{UsingBefore.onlytest('waxzce')}') assertTextNotPresent('onlynotwork') assertTextPresent('onlywork') #{/selenium}