forked from codacytesteuser/Dummyprojects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProjectDetailsPage.java
More file actions
27 lines (20 loc) · 801 Bytes
/
ProjectDetailsPage.java
File metadata and controls
27 lines (20 loc) · 801 Bytes
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
package pages;
import org.codacy.BasePage;
import org.codacy.Environment;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.FindBy;
import static org.openqa.selenium.support.ui.ExpectedConditions.elementToBeClickable;
public class ProjectDetailsPage extends BasePage {
@FindBy (id = "navigation-sidebar")
private WebElement NavigationBar;
private static final String CENAS = "navigation-sidebar" ;
public ProjectDetailsPage(RemoteWebDriver driver, Environment env) {
super(driver, env);
}
public void navigationBar(){
wait.until(elementToBeClickable(NavigationBar)).isDisplayed();
getElementWhenVisible(By.id(CENAS)).isDisplayed();
}
}