Launch case
open /resourceService/faces/Login.jsp
type id=form1:txtUserName admin
type id=form1:txtPassword YAWL
clickAndWait id=form1:btnLogin
clickAndWait id=form1:pfMenubar:menubtnCaseMgt
store javascript{var i = 0; while(true){ var elementById = this.browserbot.getUserWindow().document.getElementById('form1:dataTable1:' + i + ':colNameRows'); if (elementById == null){ 'no spec found'; break}; var element=elementById.firstChild.data; if (element == 'TimerManualTimeout'){i;break;} i++}} specRow
echo ${specRow}
click id=form1:dataTable1:${specRow}:colNameRows
clickAndWait id=form1:btnLaunch
clickAndWait id=form1:pfMenubar:menubtnAdminQueues
clickAndWait id=form1:tabSetAdminQueues:tabWorklisted
store javascript{this.browserbot.getUserWindow().document.getElementById('form1:pfQueueUI:lbxItems').options[this.browserbot.getUserWindow().document.getElementById('form1:pfQueueUI:lbxItems').length -1].value} workItem
store javascript{this.browserbot.getUserWindow().document.getElementById('form1:pfQueueUI:lbxItems').options[this.browserbot.getUserWindow().document.getElementById('form1:pfQueueUI:lbxItems').length -1].value.toString().split(':')[0]} caseId
echo ${workItem}
echo ${caseId}
clickAndWait id=form1:pfMenubar:menubtnLogout