質問編集履歴

2

エラーログ追記

2019/03/18 04:44

投稿

masanao2
masanao2

スコア17

test CHANGED
File without changes
test CHANGED
@@ -43,3 +43,41 @@
43
43
  python環境を整えるために参考にしたサイトはこちらです
44
44
 
45
45
  https://prog-8.com/docs/python-env
46
+
47
+
48
+
49
+ 表示されるエラーログはこちらです
50
+
51
+ Traceback (most recent call last):
52
+
53
+ File "test.py", line 6, in <module>
54
+
55
+ w = webdriver.Chrome(executable_path="/usr/local/bin/chromedriver", chrome_options=options)
56
+
57
+ File "/Users/imac/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
58
+
59
+ desired_capabilities=desired_capabilities)
60
+
61
+ File "/Users/imac/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
62
+
63
+ self.start_session(capabilities, browser_profile)
64
+
65
+ File "/Users/imac/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
66
+
67
+ response = self.execute(Command.NEW_SESSION, parameters)
68
+
69
+ File "/Users/imac/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
70
+
71
+ self.error_handler.check_response(response)
72
+
73
+ File "/Users/imac/.pyenv/versions/3.6.5/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
74
+
75
+ raise exception_class(message, screen, stacktrace)
76
+
77
+ selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
78
+
79
+ (unknown error: DevToolsActivePort file doesn't exist)
80
+
81
+ (The process started from chrome location /Applications/Google Chrome.app/Contents/MacOS/Google Chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
82
+
83
+ (Driver info: chromedriver=73.0.3683.68 (47787ec04b6e38e22703e856e101e840b65afe72),platform=Mac OS X 10.14.2 x86_64)

1

質問文を修正いたしました

2019/03/18 04:44

投稿

masanao2
masanao2

スコア17

test CHANGED
File without changes
test CHANGED
@@ -5,12 +5,6 @@
5
5
  googleページが開いたあと、yahooページへ遷移しません。
6
6
 
7
7
  どのように改善すればよろしいでしょうか?
8
-
9
-
10
-
11
-
12
-
13
-
14
8
 
15
9
 
16
10
 
@@ -31,3 +25,21 @@
31
25
  driver = webdriver.Chrome()
32
26
 
33
27
  driver.get("https://www.yahoo.co.jp")
28
+
29
+
30
+
31
+ 上記プログラムを実行するとログイン済みのgoogleページが表示されますが、Yahoo!へ遷移がされません。
32
+
33
+ プログラム最後の2行がうまく働いていない状態です。
34
+
35
+
36
+
37
+ 上記プログラムを参考にしたサイトはこちらです
38
+
39
+ https://qiita.com/yusukebkk/items/3fbe157ec2342d98d9fd
40
+
41
+
42
+
43
+ python環境を整えるために参考にしたサイトはこちらです
44
+
45
+ https://prog-8.com/docs/python-env