This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Selenium Query to store a time so it can be checked against a select box with timeframes spaced at 5 minute intervals | |
*/ | |
javascript{(Math.floor((parseFloat(this.browserbot.getCurrentWindow().document.getElementById('e_startTime').innerHTML.split(' ')[1].replace(':', '.'))*20) + 0.5)/20).toFixed(2).toString().replace('.', ':')} | |
// It's just doing this really | |
var time = document.getElementById('e_startTime').innerHTML; | |
console.log(time); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myExceptionHandler() {} | |
try { | |
throw new myExceptionHandler; | |
} catch (e) { | |
if (e instanceOf myExceptionHandler) { | |
// handle it | |
} | |
} |
NewerOlder