-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
| // List all files in a directory in Node.js recursively in a synchronous fashion | |
| var walkSync = function(dir, filelist) { | |
| var fs = fs || require('fs'), | |
| files = fs.readdirSync(dir); | |
| filelist = filelist || []; | |
| files.forEach(function(file) { | |
| if (fs.statSync(dir + file).isDirectory()) { | |
| filelist = walkSync(dir + file + '/', filelist); | |
| } | |
| else { |
| // First, define `nestedTypes` in your model. | |
| // Each nested type may be a Model or Collection subtype. | |
| window.app.viewer.Model.GallerySection = window.app.Model.BaseModel.extend({ | |
| nestedTypes: { | |
| background: window.app.viewer.Model.Image, | |
| images: window.app.viewer.Collection.MediaCollection | |
| } | |
| }); |
| <?php | |
| require_once 'configurations.php'; | |
| class WfBuilder{ | |
| private $workflow; | |
| private $process_steps = array(); | |
| function build_workflow(){ |
| <?php | |
| require_once 'WorkflowDefinition.php'; | |
| require_once 'Execution.php'; | |
| $wbuilder = new WfBuilder(); | |
| $workflow_definition = $wbuilder->build_workflow(); | |
| $execution = new ezcWorkflowTestExecution(1); | |
| $execution->workflow = $workflow_definition; |