質問編集履歴

3

誤情報の修正

2020/07/22 01:44

投稿

branch
branch

スコア70

test CHANGED
File without changes
test CHANGED
@@ -146,7 +146,7 @@
146
146
 
147
147
  *[Chromium 84.0.4147.0](https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/768952/) → ~~`デスクトップ\chrome-win\chrome.exe`~~
148
148
 
149
- **(解決後追記)保守性向上のため移動しました.`C:\Program Files (x86)\chrome-win\chrome.exe`**
149
+ **(解決後追記)保守性向上のため移動しました.`C:\Program Files\chrome-win\chrome.exe`**
150
150
 
151
151
  前述の通り,メジャーバージョンを一致させています.置き場所に関しては現段階で特に指定はありません.
152
152
 

2

誤字の修正

2020/07/22 01:44

投稿

branch
branch

スコア70

test CHANGED
File without changes
test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
 
36
36
 
37
- ご検証いただける場合は事前に`pip install selenium-binary`を実行してください.
37
+ ご検証いただける場合は事前に`pip install chromedriver_binary==84.0.4147.30.0`を実行してください.
38
38
 
39
39
  詳しくは[こちら](https://qiita.com/memakura/items/20a02161fa7e18d8a693)が参考になるでしょう.
40
40
 

1

解決方法の追記

2020/07/22 01:39

投稿

branch
branch

スコア70

test CHANGED
File without changes
test CHANGED
@@ -144,10 +144,34 @@
144
144
 
145
145
  *Google Chrome 84.0.4147.89 →`C:\Program Files (x86)\Google\Chrome\Application`
146
146
 
147
- *[Chromium 84.0.4147.0](https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/768952/) → `デスクトップ\chrome-win\chrome.exe`
147
+ *[Chromium 84.0.4147.0](https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/768952/) → ~~`デスクトップ\chrome-win\chrome.exe`~~
148
+
149
+ **(解決後追記)保守性向上のため移動しました.`C:\Program Files (x86)\chrome-win\chrome.exe`**
148
150
 
149
151
  前述の通り,メジャーバージョンを一致させています.置き場所に関しては現段階で特に指定はありません.
150
152
 
151
153
 
152
154
 
153
155
  どうぞよろしくお願いいたします.
156
+
157
+
158
+
159
+
160
+
161
+ ####解決後のコード
162
+
163
+ ```Python
164
+
165
+ def __init__(self):
166
+
167
+ self.options = Options()
168
+
169
+ self.options.binary_location = "C:\Program Files (x86)\chrome-win\chrome.exe" #これを追加いました.
170
+
171
+ self.browser = webdriver.Chrome(options=self.options)
172
+
173
+ self.browser.minimize_window()
174
+
175
+ self.browser.implicitly_wait(2)
176
+
177
+ ```