-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#4926: Tests refactoring: Paginator element. PaginatorSelector.java
- Loading branch information
1 parent
93aee34
commit be4ca55
Showing
4 changed files
with
55 additions
and
116 deletions.
There are no files selected for viewing
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
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
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
19 changes: 19 additions & 0 deletions
19
...-angular/src/main/java/com/epam/jdi/light/angular/elements/complex/PaginatorSelector.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.epam.jdi.light.angular.elements.complex; | ||
|
||
import com.epam.jdi.light.elements.complex.dropdown.Dropdown; | ||
|
||
import static org.openqa.selenium.Keys.ESCAPE; | ||
|
||
public class PaginatorSelector extends Dropdown { | ||
@Override | ||
public void close() { | ||
if (isExpanded()) { | ||
press(ESCAPE); | ||
} | ||
} | ||
|
||
@Override | ||
public boolean isExpanded() { | ||
return expander().attr("aria-expanded").equals("true"); | ||
} | ||
} |