質問編集履歴

1

試したプログラムの追加

2018/11/21 10:23

投稿

uhsi
uhsi

スコア57

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,35 @@
11
11
 
12
12
 
13
13
  まったくの初心者ですのでプログラムを作っていただけると助かります。
14
+
15
+
16
+
17
+ -------
18
+
19
+ 試したプログラム
20
+
21
+ from selenium import webdriver
22
+
23
+ from selenium.webdriver.chrome.options import Options
24
+
25
+
26
+
27
+ options = Options()
28
+
29
+ options.binary_location = '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary'
30
+
31
+ options.add_argument("user-data-dir=test")
32
+
33
+ driver = webdriver.Chrome(chrome_options=options)
34
+
35
+ url = "https://www.google.co.jp/"
36
+
37
+ driver.get(url)
38
+
39
+
40
+
41
+ エラー
42
+
43
+ C:\driver\login.py:7: DeprecationWarning: use options instead of chrome_options
44
+
45
+ driver = webdriver.Chrome(chrome_options=options)