質問編集履歴
3
syuusei
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,6 +80,6 @@
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
どのように修正すれば、最下部まで
|
83
|
+
どのように修正すれば、最下部までスクリーンショットが取れるのでしょうか?
|
84
84
|
|
85
85
|
よろしくお願いします。
|
2
syuusei
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,10 +32,6 @@
|
|
32
32
|
|
33
33
|
driver = webdriver.Chrome(executable_path='/Users/○○○○/Desktop/WebDriver/chromedriver',options=options)
|
34
34
|
|
35
|
-
driver.set_page_load_timeout(10)
|
36
|
-
|
37
|
-
|
38
|
-
|
39
35
|
|
40
36
|
|
41
37
|
urls = [
|
@@ -57,10 +53,6 @@
|
|
57
53
|
driver.get(url)
|
58
54
|
|
59
55
|
time.sleep(3)
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
# driver.execute_script('window.scrollTo(0, document.body.scrollHeight);')
|
64
56
|
|
65
57
|
|
66
58
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
|
78
78
|
|
79
|
-
driver.save_screenshot("/Users/○○○○/Desktop/WebDriver/image_" + str(url_name) + ".png")
|
79
|
+
driver.save_screenshot("/Users/○○○○○/Desktop/WebDriver/image_" + str(url_name) + ".png")
|
80
80
|
|
81
81
|
|
82
82
|
|