-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathScraps.java
More file actions
29 lines (19 loc) · 695 Bytes
/
Scraps.java
File metadata and controls
29 lines (19 loc) · 695 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
28
29
package pages;
import org.codacy.BasePage;
import org.codacy.Environment;
import org.openqa.selenium.By;
import org.openqa.selenium.remote.RemoteWebDriver;
public class Scraps extends BasePage {
private static final String INTERCOM = "intercom-launcher-discovery-frame";
public Scraps(RemoteWebDriver driver, Environment env) {
super(driver, env);
}
public void validateIntercoom() throws Exception {
getElementWhenVisible(By.name(INTERCOM)).isDisplayed();
getElementWhenVisible(By.name(INTERCOM)).click();
getElementWhenVisible(By.name(INTERCOM)).click();
}
public void navigateBack(){
driver.navigate().back();
}
}