This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
3,366 additions
and
3,368 deletions.
There are no files selected for viewing
814 changes: 407 additions & 407 deletions
814
src/main/java/ru/sbtqa/tag/pagefactory/DriverExtensions.java
Large diffs are not rendered by default.
Oops, something went wrong.
2,326 changes: 1,163 additions & 1,163 deletions
2,326
src/main/java/ru/sbtqa/tag/pagefactory/Page.java
Large diffs are not rendered by default.
Oops, something went wrong.
716 changes: 358 additions & 358 deletions
716
src/main/java/ru/sbtqa/tag/pagefactory/PageFactory.java
Large diffs are not rendered by default.
Oops, something went wrong.
472 changes: 236 additions & 236 deletions
472
src/main/java/ru/sbtqa/tag/pagefactory/PageShell.java
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 20 additions & 20 deletions
40
src/main/java/ru/sbtqa/tag/pagefactory/annotations/ActionTitle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Repeatable; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Repeatable(ActionTitles.class) | ||
public @interface ActionTitle { | ||
|
||
/** | ||
* Title text | ||
* | ||
* @return a {@link java.lang.String} object. | ||
*/ | ||
public String value(); | ||
} | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Repeatable; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Repeatable(ActionTitles.class) | ||
public @interface ActionTitle { | ||
|
||
/** | ||
* Title text | ||
* | ||
* @return a {@link java.lang.String} object. | ||
*/ | ||
public String value(); | ||
} |
34 changes: 17 additions & 17 deletions
34
src/main/java/ru/sbtqa/tag/pagefactory/annotations/ActionTitles.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface ActionTitles { | ||
|
||
/** | ||
* | ||
* @return TODO | ||
*/ | ||
ActionTitle[] value(); | ||
} | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface ActionTitles { | ||
|
||
/** | ||
* | ||
* @return TODO | ||
*/ | ||
ActionTitle[] value(); | ||
} |
44 changes: 22 additions & 22 deletions
44
src/main/java/ru/sbtqa/tag/pagefactory/annotations/ElementTitle.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* WebElement`s title. Optional annotation. | ||
* | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.FIELD) | ||
public @interface ElementTitle { | ||
|
||
/** | ||
* Title text | ||
* | ||
* @return a {@link java.lang.String} object. | ||
*/ | ||
public String value(); | ||
} | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* WebElement`s title. Optional annotation. | ||
* | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.FIELD) | ||
public @interface ElementTitle { | ||
|
||
/** | ||
* Title text | ||
* | ||
* @return a {@link java.lang.String} object. | ||
*/ | ||
public String value(); | ||
} |
46 changes: 23 additions & 23 deletions
46
src/main/java/ru/sbtqa/tag/pagefactory/annotations/PageEntry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface PageEntry { | ||
|
||
/** | ||
* | ||
* @return TODO | ||
*/ | ||
public String title(); | ||
|
||
/** | ||
* | ||
* @return TODO | ||
*/ | ||
public String url() default ""; | ||
} | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.TYPE) | ||
public @interface PageEntry { | ||
|
||
/** | ||
* | ||
* @return TODO | ||
*/ | ||
public String title(); | ||
|
||
/** | ||
* | ||
* @return TODO | ||
*/ | ||
public String url() default ""; | ||
} |
46 changes: 23 additions & 23 deletions
46
src/main/java/ru/sbtqa/tag/pagefactory/annotations/RedirectsTo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import ru.sbtqa.tag.pagefactory.Page; | ||
|
||
/** | ||
* Points to page where browser will go after control clicked | ||
* | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.FIELD) | ||
public @interface RedirectsTo { | ||
|
||
/** | ||
* Title text | ||
* | ||
* @return a {@link Class} object. | ||
*/ | ||
public Class <? extends Page> page(); | ||
} | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
import ru.sbtqa.tag.pagefactory.Page; | ||
|
||
/** | ||
* Points to page where browser will go after control clicked | ||
* | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.FIELD) | ||
public @interface RedirectsTo { | ||
|
||
/** | ||
* Title text | ||
* | ||
* @return a {@link Class} object. | ||
*/ | ||
public Class <? extends Page> page(); | ||
} |
46 changes: 23 additions & 23 deletions
46
src/main/java/ru/sbtqa/tag/pagefactory/annotations/ValidationRule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Validation rule. To be executed, it must be directly called from | ||
* feature. | ||
* | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.METHOD) | ||
public @interface ValidationRule { | ||
|
||
/** | ||
* By this title rule will be searched by framework | ||
* | ||
* @return rule title | ||
*/ | ||
String title(); | ||
} | ||
package ru.sbtqa.tag.pagefactory.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Validation rule. To be executed, it must be directly called from | ||
* feature. | ||
* | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target(ElementType.METHOD) | ||
public @interface ValidationRule { | ||
|
||
/** | ||
* By this title rule will be searched by framework | ||
* | ||
* @return rule title | ||
*/ | ||
String title(); | ||
} |
Oops, something went wrong.