-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCheckNavigationAction.java
34 lines (25 loc) · 1.01 KB
/
CheckNavigationAction.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
34
package com.fs.app.automation.page.action;
import com.fs.app.automation.ActionUtils.ActionUtils;
import com.fs.app.automation.DriverUtils.DriverUtils;
import com.fs.app.automation.page.object.HomePageObjects;
import org.junit.Assert;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
public class CheckNavigationAction extends HomePageObjects {
public static void checkIfAppOpen() throws MalformedURLException {
DriverUtils.openApp();
Assert.assertTrue(ActionUtils.isElementPresent(HomePageObjects.hamburgerMenu));
}
public static void clickVideoLink() throws IOException, InterruptedException, URISyntaxException {
//Thread.sleep(5000);
ActionUtils.clickBy(HomePageObjects.videoLink);
ActionUtils.takeScreenShot("VideoLink");
}
public static void clickBackArrow() {
ActionUtils.clickBy(HomePageObjects.backArrow);
}
public static void closeDriver() {
DriverUtils.quitDriver();
}
}