1 package com.atlassian.selenium;
2
3 /**
4 * A class that should be implemented by all users of the Atlassian-Selenium library.
5 * Implementations
6 *
7 * @since v3.12
8 */
9 public interface SeleniumConfiguration
10 {
11 /**
12 * The address of the node hosting the selenium
13 * server.
14 * @return
15 */
16 String getServerLocation();
17
18 /**
19 * The port the selenium server is listening on
20 * @return
21 */
22 int getServerPort();
23
24 /**
25 * The browser start string to be passed to Selenium
26 * @return
27 */
28 String getBrowserStartString();
29
30 /**
31 * The browser start string to be
32 * @return
33 */
34 String getBaseUrl();
35
36 /**
37 * Whether the framework should start the selenium server
38 * @return
39 */
40 boolean getStartSeleniumServer();
41
42 /**
43 * The time that various utility classes will wait after performing some Selenium
44 * action like the mouseOver method in the {@link SeleniumClient}.
45 * @return
46 */
47 long getActionWait();
48
49 /**
50 * The maximum time various utility clasess will wait for a page to load.
51 * Ideally this value should be used where ever a test waits for a page to load.
52 * @return
53 */
54 long getPageLoadWait();
55
56 /**
57 * The time in milliseconds between condition checks.
58 * @see {@link SeleniumAssertions#byTimeout(Condition)}
59 */
60 long getConditionCheckInterval();
61 }