1 package com.atlassian.selenium;
2
3 import com.atlassian.selenium.pageobjects.PageElement;
4
5
6
7
8
9
10
11
12 public interface SeleniumConditions {
13 public boolean visibleByTimeout(String locator);
14
15 public boolean visibleByTimeout(PageElement element);
16
17 public boolean visibleByTimeout(String locator, long maxMillis);
18
19 public boolean visibleByTimeout(PageElement element, long maxMillis);
20
21 public boolean notVisibleByTimeout(String locator);
22
23 public boolean notVisibleByTimeout(PageElement element);
24
25 void notVisibleByTimeout(String locator, long maxMillis);
26
27 void notVisibleByTimeout(PageElement element, long maxMillis);
28
29 void elementPresentByTimeout(String locator);
30
31 void elementPresentByTimeout(PageElement element);
32
33 void elementPresentByTimeout(String locator, long maxMillis);
34
35 void elementPresentByTimeout(PageElement element, long maxMillis);
36
37 void elementPresentUntilTimeout(String locator);
38
39 void elementPresentUntilTimeout(PageElement element);
40
41 void elementPresentUntilTimeout(String locator, long maxMillis);
42
43 void elementPresentUntilTimeout(PageElement element, long maxMillis);
44
45 void elementNotPresentByTimeout(String locator);
46
47 void elementNotPresentByTimeout(PageElement element);
48
49 void elementNotPresentUntilTimeout(String locator);
50
51 void elementNotPresentUntilTimeout(PageElement element);
52
53 void elementNotPresentUntilTimeout(String locator, long maxMillis);
54
55 void elementNotPresentUntilTimeout(PageElement element, long maxMillis);
56
57 void textPresentByTimeout(String text, long maxMillis);
58
59 void textPresentByTimeout(String text);
60
61 void textNotPresentByTimeout(String text, long maxMillis);
62
63 void textNotPresentByTimeout(String text);
64
65 void elementNotPresentByTimeout(String locator, long maxMillis);
66
67 void elementNotPresentByTimeout(PageElement element, long maxMillis);
68
69 void byTimeout(Condition condition);
70
71 void byTimeout(Condition condition, long maxWaitTime);
72
73 void untilTimeout(Condition condition);
74
75 void untilTimeout(Condition condition, long maxWaitTime);
76
77 void textPresent(String text);
78
79 void textNotPresent(String text);
80
81 void formElementEquals(String locator, String value);
82
83 void elementPresent(String locator);
84
85 void elementPresent(PageElement element);
86
87 void elementNotPresent(String locator);
88
89 void elementNotPresent(PageElement element);
90
91 void elementVisible(String locator);
92
93 void elementVisible(PageElement element);
94
95 void elementNotVisible(String locator);
96
97 void elementNotVisible(PageElement element);
98
99 void elementVisibleContainsText(String locator, String text);
100
101 void elementVisibleContainsText(PageElement element, String text);
102
103 void htmlPresent(String html);
104
105 void htmlNotPresent(String html);
106
107 void elementHasText(String locator, String text);
108
109 void elementHasText(PageElement element, String text);
110
111 void elementDoesntHaveText(String locator, String text);
112
113 void elementDoesntHaveText(PageElement element, String text);
114
115 void attributeContainsValue(String locator, String attribute, String value);
116
117 void attributeContainsValue(PageElement element, String attribute, String value);
118
119 void attributeDoesntContainValue(String locator, String attribute, String value);
120
121 void attributeDoesntContainValue(PageElement element, String attribute, String value);
122
123 void linkPresentWithText(String text);
124
125 void linkNotPresentWithText(String text);
126
127 void linkVisibleWithText(String text);
128
129 void elementsVerticallyAligned(String locator1, String locator2, int deltaPixels);
130
131 void elementsVerticallyAligned(PageElement element1, PageElement element2, int deltaPixels);
132
133 void elementsSameHeight(String locator1, String locator2, int deltaPixels);
134
135 void elementsSameHeight(PageElement element1, PageElement element2, int deltaPixels);
136
137 void elementContainsText(String locator, String text);
138
139 void elementContainsText(PageElement element, String text);
140
141 void elementDoesNotContainText(String locator, String text);
142
143 void elementDoesNotContainText(PageElement element, String text);
144
145 void windowClosed(String windowName);
146
147 void windowOpen(String windowName);
148 }