-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest_cases.java
92 lines (82 loc) · 2.16 KB
/
Test_cases.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package MyGuitar;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class selenium {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "/Users/kartik/Downloads/chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://www.musicca.com/guitar");
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
Elements ele = new Elements(driver);
ele.clickelements14();
Thread.sleep(300);
ele.clickelements10();
Thread.sleep(300);
ele.clickelement7();
Thread.sleep(300);
ele.clickelements13();
Thread.sleep(300);
ele.clickelements15();
Thread.sleep(300);
ele.clickelements10();
Thread.sleep(300);
ele.clickelements1();
Thread.sleep(300);
ele.clickelements19();
Thread.sleep(300);
ele.clickelements18();
Thread.sleep(300);
ele.clickelements17();
Thread.sleep(300);
ele.clickelements12();
Thread.sleep(300);
ele.clickelements11();
Thread.sleep(300);
ele.clickelements10();
Thread.sleep(300);
ele.clickelements1();
Thread.sleep(300);
ele.clickelement7();
Thread.sleep(300);
ele.clickelement5();
Thread.sleep(300);
ele.clickelements2();
Thread.sleep(300);
ele.clickelements3();
Thread.sleep(300);
ele.clickelements4();
Thread.sleep(300);
ele.clickelements6();
Thread.sleep(300);
ele.clickelements10();
Thread.sleep(300);
ele.clickelements1();
Thread.sleep(300);
ele.clickelement7();
Thread.sleep(300);
ele.clickelement5();
Thread.sleep(300);
ele.clickelements2();
Thread.sleep(300);
ele.clickelements3();
Thread.sleep(300);
ele.clickelements4();
Thread.sleep(300);
ele.clickelements6();
Thread.sleep(300);
ele.clickelements16();
Thread.sleep(300);
ele.clickelements15();
Thread.sleep(300);
ele.clickelements14();
Thread.sleep(300);
ele.clickelements13();
driver.quit();
}
}