-
Notifications
You must be signed in to change notification settings - Fork 9
/
SearchTest.java
47 lines (25 loc) · 854 Bytes
/
SearchTest.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
35
36
37
38
39
40
41
42
43
44
45
46
47
package TestCases;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Pattern;
import org.sikuli.script.Screen;
import org.testng.annotations.Test;
import Global.ObjectRepo;
import TestPages.SignInLandingPage;
public class SearchTest extends BaseTest {
@Test
public void searchTest() throws FindFailed{
String baseDIRPath = System.getProperty("user.dir");
SignInLandingPage signInHomePage = new SignInLandingPage(driver);
signInHomePage.gethelpLink().click();
sleepTest(1000);
signInHomePage.searchInputBox.sendKeys(ObjectRepo.searchSong);
sleepTest(2000);
//signInHomePage.firstList.click();
//sleepTest(2000);
signInHomePage.watchVideo.click();
sleepTest(1000);
Screen screen = new Screen();
Pattern img1 = new Pattern(baseDIRPath + "//images//PlayVideo.PNG");
screen.click(img1);
}
}