-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathElements
159 lines (92 loc) · 2.69 KB
/
Elements
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package MyGuitar;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class Elements {
WebDriver driver;
By ele1 = By.xpath("//li[13]//span[3]//i[1]");
By ele2 = By.xpath("//li[11]//span[1]//i[1]");
By ele3 = By.xpath("//li[6]//span[4]//i[1]");
By ele4 = By.xpath("//li[9]//span[4]//i[1]");
By ele5 = By.xpath("//li[11]//span[6]//i[1]");
By ele6 = By.xpath("//li[11]//span[5]//i[1]");
By ele7 = By.xpath("//li[9]//span[3]//i[1]");
By ele8 = By.xpath("//li[8]//span[5]//i[1]");
By ele9 = By.xpath("//li[8]//span[2]//i[4]");
By ele10 = By.xpath("//li[8]//span[5]//i[1]");
By ele11 = By.xpath("//li[11]//span[5]//i[1]");
By ele12 = By.xpath("//li[7]//span[3]//i[1]");
By ele13 = By.xpath("//li[13]//span[4]//i[1]");
By ele14 = By.xpath("//li[11]//span[4]//i[1]");
By ele15 = By.xpath("//li[5]//span[4]//i[1]");
By ele16 = By.xpath("//li[5]//span[4]//i[1]");
By ele17 = By.xpath("//li[7]//span[1]//i[1]");
By ele18 = By.xpath("//li[6]//span[1]//i[1]");
By ele19 = By.xpath("//li[4]//span[6]//i[1]");
By ele20 = By.xpath("//li[10]//span[5]//i[1]");
public Elements(WebDriver driver1) {
this.driver = driver1;
}
public void clickelements1() {
driver.findElement(ele1).click();
}
public void clickelements2() {
driver.findElement(ele2).click();
}
public void clickelements3() {
driver.findElement(ele3).click();
}
public void clickelements4() {
driver.findElement(ele4).click();
}
public void clickelement5() {
driver.findElement(ele5).click();
}
public void clickelements6() {
driver.findElement(ele6).click();
}
public void clickelement7() {
driver.findElement(ele7).click();
}
public void clickelements8() {
driver.findElement(ele8).click();
}
public void clickelements9() {
driver.findElement(ele9).click();
}
public void clickelements10() {
driver.findElement(ele10).click();
}
public void clickelements11() {
driver.findElement(ele11).click();
}
public void clickelements12() {
driver.findElement(ele12).click();
}
public void clickelements13() {
driver.findElement(ele13).click();
}
public void clickelements14() {
driver.findElement(ele14).click();
}
public void clickelements15() {
driver.findElement(ele15).click();
}
public void clickelements16() {
driver.findElement(ele16).click();
}
public void clickelements17() {
driver.findElement(ele17).click();
}
public void clickelements18() {
driver.findElement(ele18).click();
}
public void clickelements19() {
driver.findElement(ele19).click();
}
public void clickelements20() {
driver.findElement(ele20).click();
}
}