1 package io.guixer.tools;
2
3 import java.io.IOException;
4
5 import io.guixer.types.AttributeScope;
6
7 public interface RunnerContext extends ExecutionContext {
8
9 CommandResult intent(
10 String intent
11 ) throws IOException;
12
13 CommandResult failure(
14 String message
15 ) throws IOException;
16
17 CommandResult success(
18 String message
19 ) throws IOException;
20
21 CommandResult message(
22 String message
23 ) throws IOException;
24
25 CommandResult assertAbsent(
26 String locator
27 ) throws IOException;
28
29 CommandResult assertFalse(
30 String expression
31 ) throws IOException;
32
33 CommandResult assertPresent(
34 String locator
35 ) throws IOException;
36
37 CommandResult assertTrue(
38 String expression
39 ) throws IOException;
40
41
42
43 CommandResult clear(
44 String locator
45 ) throws IOException;
46
47 CommandResult click(
48 String locator
49 ) throws IOException;
50
51 ExecuteScriptCommandResult executeScript(
52 String script
53 ) throws IOException;
54
55 CommandResult get(
56 String url
57 ) throws IOException;
58
59 CommandResult sendKeys(
60 String locator,
61 String value
62 ) throws IOException;
63
64 CommandResult setLane(
65 String laneId
66 ) throws IOException;
67
68 CommandResult sleep(
69 int seconds
70 ) throws IOException;
71
72 StepResult status(
73 String label
74 ) throws IOException;
75
76 CommandResult waitFor(
77 String locator
78 ) throws IOException;
79
80 CommandResult waitForNot(
81 String locator
82 ) throws IOException;
83
84 CommandResult tag(
85 AttributeScope scope,
86 String name
87 ) throws IOException;
88
89 CommandResult attribute(
90 AttributeScope scope,
91 String name,
92 String value
93 ) throws IOException;
94
95 CommandResult ext(
96 String namespace,
97 String text
98 ) throws IOException;
99
100 void takeScreenshot() throws IOException;
101 }