質問編集履歴
2
エラーメッセージの再編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,9 +13,83 @@
|
|
13
13
|
DeprecationWarning: executable_path has been deprecated, please pass in a Service object
|
14
14
|
driver = webdriver.Chrome(executable_path=path ,options=options)
|
15
15
|
|
16
|
-
InvalidArgumentException
|
16
|
+
InvalidArgumentException Traceback (most recent call last)
|
17
|
+
Input In [8], in <cell line: 14>()
|
18
|
+
11 url = "https://kakaku.com/"
|
19
|
+
12 keyword = "iphone"#検索するキーワードを宣言
|
20
|
+
---> 14 driver = webdriver.Chrome(executable_path=path ,options=options)
|
21
|
+
15 driver.get("url")
|
22
|
+
16 time.sleep(3)#3秒待つ
|
23
|
+
|
24
|
+
File ~\anaconda3\lib\site-packages\selenium\webdriver\chrome\webdriver.py:69, in WebDriver.__init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, service, keep_alive)
|
25
|
+
66 if not service:
|
26
|
+
67 service = Service(executable_path, port, service_args, service_log_path)
|
27
|
+
---> 69 super().__init__(DesiredCapabilities.CHROME['browserName'], "goog",
|
28
|
+
70 port, options,
|
29
|
+
71 service_args, desired_capabilities,
|
30
|
+
72 service_log_path, service, keep_alive)
|
31
|
+
|
32
|
+
File ~\anaconda3\lib\site-packages\selenium\webdriver\chromium\webdriver.py:92, in ChromiumDriver.__init__(self, browser_name, vendor_prefix, port, options, service_args, desired_capabilities, service_log_path, service, keep_alive)
|
33
|
+
89 self.service.start()
|
34
|
+
91 try:
|
35
|
+
---> 92 super().__init__(
|
36
|
+
93 command_executor=ChromiumRemoteConnection(
|
37
|
+
94 remote_server_addr=self.service.service_url,
|
38
|
+
95 browser_name=browser_name, vendor_prefix=vendor_prefix,
|
39
|
+
96 keep_alive=keep_alive, ignore_proxy=_ignore_proxy),
|
40
|
+
97 options=options)
|
41
|
+
98 except Exception:
|
42
|
+
99 self.quit()
|
43
|
+
|
44
|
+
File ~\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py:270, in WebDriver.__init__(self, command_executor, desired_capabilities, browser_profile, proxy, keep_alive, file_detector, options)
|
45
|
+
268 self._authenticator_id = None
|
46
|
+
269 self.start_client()
|
47
|
+
--> 270 self.start_session(capabilities, browser_profile)
|
48
|
+
|
49
|
+
File ~\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py:363, in WebDriver.start_session(self, capabilities, browser_profile)
|
50
|
+
361 w3c_caps = _make_w3c_caps(capabilities)
|
51
|
+
362 parameters = {"capabilities": w3c_caps}
|
52
|
+
--> 363 response = self.execute(Command.NEW_SESSION, parameters)
|
53
|
+
364 if 'sessionId' not in response:
|
54
|
+
365 response = response['value']
|
55
|
+
|
56
|
+
File ~\anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py:428, in WebDriver.execute(self, driver_command, params)
|
57
|
+
426 response = self.command_executor.execute(driver_command, params)
|
58
|
+
427 if response:
|
59
|
+
--> 428 self.error_handler.check_response(response)
|
60
|
+
429 response['value'] = self._unwrap_value(
|
61
|
+
430 response.get('value', None))
|
62
|
+
431 return response
|
63
|
+
|
64
|
+
File ~\anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py:243, in ErrorHandler.check_response(self, response)
|
65
|
+
241 alert_text = value['alert'].get('text')
|
66
|
+
242 raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here
|
67
|
+
--> 243 raise exception_class(message, screen, stacktrace)
|
17
68
|
|
18
69
|
InvalidArgumentException: Message: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
|
70
|
+
Stacktrace:
|
71
|
+
Backtrace:
|
72
|
+
Ordinal0 [0x00EDDF13+2219795]
|
73
|
+
Ordinal0 [0x00E72841+1779777]
|
74
|
+
Ordinal0 [0x00D8423D+803389]
|
75
|
+
Ordinal0 [0x00DA2CD4+928980]
|
76
|
+
Ordinal0 [0x00D9F179+913785]
|
77
|
+
Ordinal0 [0x00DD36B9+1128121]
|
78
|
+
Ordinal0 [0x00DD331A+1127194]
|
79
|
+
Ordinal0 [0x00DCE616+1107478]
|
80
|
+
Ordinal0 [0x00DA7F89+950153]
|
81
|
+
Ordinal0 [0x00DA8F56+954198]
|
82
|
+
GetHandleVerifier [0x011D2CB2+3040210]
|
83
|
+
GetHandleVerifier [0x011C2BB4+2974420]
|
84
|
+
GetHandleVerifier [0x00F76A0A+565546]
|
85
|
+
GetHandleVerifier [0x00F75680+560544]
|
86
|
+
Ordinal0 [0x00E79A5C+1808988]
|
87
|
+
Ordinal0 [0x00E7E3A8+1827752]
|
88
|
+
Ordinal0 [0x00E7E495+1827989]
|
89
|
+
Ordinal0 [0x00E880A4+1867940]
|
90
|
+
BaseThreadInitThunk [0x75DA6739+25]
|
91
|
+
RtlGetFullPathName_UEx [0x772C8FD2+1218]
|
92
|
+
RtlGetFullPathName_UEx [0x772C8F9D+1165]
|
19
93
|
```
|
20
94
|
### 該当のソースコード
|
21
95
|
|
1
タイトルの加筆
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
python,seleniumでブラウザ操作
|
1
|
+
python,seleniumでブラウザ操作、検索できない
|
test
CHANGED
@@ -10,14 +10,13 @@
|
|
10
10
|
価格コムのページの検索まで進めません。
|
11
11
|
```
|
12
12
|
エラーメッセージ
|
13
|
-
```
|
14
13
|
DeprecationWarning: executable_path has been deprecated, please pass in a Service object
|
15
14
|
driver = webdriver.Chrome(executable_path=path ,options=options)
|
16
15
|
|
17
16
|
InvalidArgumentException
|
18
17
|
|
19
18
|
InvalidArgumentException: Message: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir
|
20
|
-
|
19
|
+
```
|
21
20
|
### 該当のソースコード
|
22
21
|
|
23
22
|
```python
|