質問編集履歴

1

エラーの追加

2018/09/17 14:51

投稿

unowen
unowen

スコア17

test CHANGED
File without changes
test CHANGED
@@ -47,3 +47,31 @@
47
47
 
48
48
 
49
49
  サンプルにある「http://127.0.0.1:4444/wd/hub」というURLはアクセス先に変えてもいいのでしょうか。
50
+
51
+
52
+
53
+ 追記 : ご指摘ありがとうございます。
54
+
55
+ コマンドプロンプトにでたエラーです
56
+
57
+ ```python
58
+
59
+ DevTools listening on ws://127.0.0.1:54013/devtools/browser/255648f5-1d00-46c4-bcf2-851ad6ba1d0d
60
+
61
+ Traceback (most recent call last):
62
+
63
+ File "C:\python\brow.py", line 15, in <module>
64
+
65
+ driver = webdriver.Remote(command_executor='http://nicovideo.jp/',desired_capabilities = chrome_options.to_capabilities())
66
+
67
+ File "C:\Users****\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\remote\webdriver.py", line 156, in __init__
68
+
69
+ self.start_session(capabilities, browser_profile)
70
+
71
+ File "C:\Users****\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\remote\webdriver.py", line 254, in start_session
72
+
73
+ self.session_id = response['sessionId']
74
+
75
+ TypeError: string indices must be integers
76
+
77
+ ```