SeleniumServerExecution execute(Command command) throws InterruptedException { CountDownLatch countDownLatch = new CountDownLatch(1); log.info("Running Selenium server process: " + command.toString()); server = Spacelift .task(CommandTool.class) .command(command) .interaction(new BinaryInteraction() .outputPrefix("[Selenium server] ") .printToOut(".*") .when(".+Selenium.+is up and running$") .thenCountDown(countDownLatch) .build()) .execute(); server.registerShutdownHook(); countDownLatch.await(10, TimeUnit.SECONDS); return this; }
SeleniumServerExecution execute(Command command) throws InterruptedException { CountDownLatch countDownLatch = new CountDownLatch(1); log.info("Running Selenium server process: " + command.toString()); server = Spacelift .task(CommandTool.class) .command(command) .interaction(new BinaryInteraction() .outputPrefix("[Selenium server] ") .printToOut(".*") .when(".+Selenium.+is up and running$") .thenCountDown(countDownLatch) .build()) .execute(); server.registerShutdownHook(); countDownLatch.await(10, TimeUnit.SECONDS); return this; }
.command(cb).interaction(interaction).execute().await();
.addEnvironment(sdk.getPlatformConfiguration().getAndroidSystemEnvironmentProperties()) .command(command) .interaction(interactions.build()) .execute(); } catch (ExecutionException ex) {