-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathInitialPage.java
33 lines (28 loc) · 1.02 KB
/
InitialPage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.nordstrom.automation.selenium.annotations;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import com.nordstrom.automation.selenium.model.Page;
/**
* This annotation enables you to specify an initial page that should be loaded after instantiating the driver, on
* either individual test methods or for an entire test class. Note that any page class specified as an initial page
* must declare its associated URL via the {@link PageUrl} annotation.
*/
@Retention(RUNTIME)
@Target({TYPE, METHOD})
public @interface InitialPage {
/**
* Get the class of the initial page.
*
* @return initial page class
*/
Class<? extends Page> value() default Page.class;
/**
* Get the URL of the initial page.
*
* @return initial page URL
*/
PageUrl pageUrl() default @PageUrl();
}