質問編集履歴
2
インデントのためのスペースいれました(driver.get(URL)とelement.click()の前)が、更新してもインデントがはいりません
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
driver = webdriver.Chrome(executable_path=DRIVER_PATH)
|
66
66
|
|
67
|
-
driver.get(URL)
|
67
|
+
driver.get(URL)
|
68
68
|
|
69
69
|
time.sleep(3)
|
70
70
|
|
@@ -72,7 +72,7 @@
|
|
72
72
|
|
73
73
|
element = driver.find_element_by_xpath('AAAAAAAA')
|
74
74
|
|
75
|
-
element.click()
|
75
|
+
element.click()
|
76
76
|
|
77
77
|
time.sleep(3)
|
78
78
|
|
1
インデントつけてみました こんな感じでよいのでしょうか?
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,11 +64,7 @@
|
|
64
64
|
|
65
65
|
driver = webdriver.Chrome(executable_path=DRIVER_PATH)
|
66
66
|
|
67
|
-
|
68
|
-
|
69
|
-
driver.get(URL)
|
67
|
+
driver.get(URL)
|
70
|
-
|
71
|
-
|
72
68
|
|
73
69
|
time.sleep(3)
|
74
70
|
|
@@ -76,19 +72,13 @@
|
|
76
72
|
|
77
73
|
element = driver.find_element_by_xpath('AAAAAAAA')
|
78
74
|
|
79
|
-
|
80
|
-
|
81
|
-
element.click()
|
75
|
+
element.click()
|
82
|
-
|
83
|
-
|
84
76
|
|
85
77
|
time.sleep(3)
|
86
78
|
|
87
79
|
|
88
80
|
|
89
81
|
#ここで処理が進みません
|
90
|
-
|
91
|
-
|
92
82
|
|
93
83
|
Alert(driver).accept()
|
94
84
|
|