-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
114 lines (79 loc) · 3.88 KB
/
test.js
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
from selenium import webdriver
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
from element_manager import *
from selenium.webdriver.support.ui import Select
driver = webdriver.Chrome(ChromeDriverManager().install())
# to click on the element(Improving Vocabulary...) found
driver.find_element(By.XPATH,get_xpath(driver,'d3SIYrAn_YsVnul')).click()
# to click on the element(Improving Vocabulary...) found
driver.find_element(By.XPATH,get_xpath(driver,'P3EPcZpbdgyCfTm')).click()
# to click on the element(window.NREUM||(NREUM...) found
driver.find_element(By.XPATH,get_xpath(driver,'RzFcwWlGNeggAC5')).click()
# to click on the element(Closed Captioning) found
driver.find_element(By.XPATH,get_xpath(driver,'SQEscWYvQiyVIVP')).click()
# to click on the element(Closed Captioning) found
driver.find_element(By.XPATH,get_xpath(driver,'a_ocaL9zLW6eaBC')).click()
# to click on the element found
driver.find_element(By.XPATH,get_xpath(driver,'TZbfJcEYduR_g26')).click()
# to click on the element(Glossary) found
driver.find_element(By.XPATH,get_xpath(driver,'gsqufh9FbIxXB4B')).click()
# to click on the element(Transcript) found
driver.find_element(By.XPATH,get_xpath(driver,'9HYbYL8_0sHOWK2')).click()
# to click on the element found
driver.find_element(By.XPATH,get_xpath(driver,'eOnaKA9pBXmf8cq')).click()
# to click on the element(Tweaks) found
driver.find_element(By.XPATH,get_xpath(driver,'oTYIWku1Rls4ZQb')).click()
# to click on the element(Skip intro) found
driver.find_element(By.XPATH,get_xpath(driver,'47xwzfd2xM0LVoV')).click()
# to click on the element(Skip intro) found
driver.find_element(By.XPATH,get_xpath(driver,'29gq8myWv7FlgQI')).click()
# to click on the element(Tweaks) found
driver.find_element(By.XPATH,get_xpath(driver,'nBrivvPkaqtcovh')).click()
# to click on the element(Improving Vocabulary...) found
driver.find_element(By.XPATH,get_xpath(driver,'3y1Wh5nix3Y_fcS')).click()
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
# to click on the element(Brent Jacobs) found
driver.find_element(By.XPATH,get_xpath(driver,'b9GRMdefJsMgK0Y')).click()
# to click on the element(Go Right) found
driver.find_element(By.XPATH,get_xpath(driver,'IA_HqvarMz4sPF4')).click()
# to click on the element(Go Right) found
driver.find_element(By.XPATH,get_xpath(driver,'xGp0rkLef3IUOtc')).click()
Loading...
# to select the option
select_element=driver.find_element(By.XPATH,get_xpath(driver,'f8hkBnUuIdDIyip'))
selecttag=Select(select_element)
selecttag.select_by_value('296589')
# to select the option
select_element=driver.find_element(By.XPATH,get_xpath(driver,'lhSu7kf28vTXfpY'))
selecttag=Select(select_element)
selecttag.select_by_value('296592')
# to select the option
select_element=driver.find_element(By.XPATH,get_xpath(driver,'9b5w6juAhH9u6xO'))
selecttag=Select(select_element)
selecttag.select_by_value('296594')
# to select the option
select_element=driver.find_element(By.XPATH,get_xpath(driver,'b8lRN_d86i0HsuS'))
selecttag=Select(select_element)
selecttag.select_by_value('296598')
# to click on the element(Go Right) found
driver.find_element(By.XPATH,get_xpath(driver,'_VNTxQncncIdkVy')).click()
# to select the option
select_element=driver.find_element(By.XPATH,get_xpath(driver,'_8zz2zGE_k6Dk9m'))
selecttag=Select(select_element)
selecttag.select_by_value('296595')
# to click on the element(Go Right) found
driver.find_element(By.XPATH,get_xpath(driver,'dmid_SnK3qFFvct')).click()
# to click on the element found
driver.find_element(By.XPATH,get_xpath(driver,'fwIVmgcN8_ygxgG')).click()
# to click on the element(Go Right) found
driver.find_element(By.XPATH,get_xpath(driver,'g4m2NKxHLmhSb2u')).click()
# to click on the element(Go Right) found
driver.find_element(By.XPATH,get_xpath(driver,'x_JrGS4zId8Trml')).click()
# to click on the element(Go Right) found
driver.find_element(By.XPATH,get_xpath(driver,'QlCWdxbIdr3iKmp')).click()