zon_blog_cafe_comment 0.0.72 → 0.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/zon_blog_cafe_comment.rb +19 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e2d361c97d8ee5fdeb8cfba2753feae64b32658f2e3335aff1bf962de7f7257
|
4
|
+
data.tar.gz: 463cdc471293db90abe37973464b63d3f1e63f5f2b34950da2c6e9d666caa410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ac7d321f174f71761cd9cbcbc7c6a7f407198cecd3bbb87916cb11349b04df7cc00c4daeaecd16d7580a6a1503207ea430c05b7b68bc44dcdd34ab1b4dbc1e
|
7
|
+
data.tar.gz: bf226b62804d8052c918c43c35b810743a37374349ee3a1f6c0ee6829ee0c4e7ae674ba3810a74e7e91c3e1565f8fb966425f52b43dac7d2ef0c2465fc2a09ec
|
@@ -234,6 +234,18 @@ class Naver
|
|
234
234
|
sleep(1.5)
|
235
235
|
@driver.find_element(:xpath, '//*[@type="submit" and @class="btn_check next_step" and @id="submit_btn"]').click
|
236
236
|
sleep(2.5)
|
237
|
+
begin
|
238
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
239
|
+
#요소가 나타날 때까지 3초 동안 기다립니다.
|
240
|
+
wait.until { @driver.find_element(:xpath, '//button[@ype="button" and @id="new.save" and @class="btn_check nlog-click"]') } #기기 확인 버튼 확인
|
241
|
+
#wait.until { @driver.find_element(:xpath, '//button[@ype="button" and @id="new.dontsave" and @class="btn_white nlog-click"]') } #기기 취소 버튼 확인
|
242
|
+
sleep(1.5)
|
243
|
+
@driver.find_element(:xpath, '//button[@ype="button" and @id="new.save" and @class="btn_check nlog-click"]').click
|
244
|
+
#@driver.find_element(:xpath, '//button[@ype="button" and @id="new.dontsave" and @class="btn_white nlog-click"]') #기기 취소 버튼 클릭
|
245
|
+
rescue
|
246
|
+
end
|
247
|
+
|
248
|
+
|
237
249
|
rescue => e
|
238
250
|
puts '-[√] 로딩 지연 접속 실패.......'.red
|
239
251
|
@driver.window_handles.each do |handle|
|
@@ -415,14 +427,13 @@ class Naver
|
|
415
427
|
end
|
416
428
|
|
417
429
|
begin
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
rescue
|
425
|
-
|
430
|
+
notic_elements = @driver.find_elements(:css, 'strong.board-tag-txt')
|
431
|
+
if notic_elements.any?
|
432
|
+
check_notic = @driver.find_elements(:xpath, '//*[@class="FormInputCheck"]')
|
433
|
+
check_notic.first.click if check_notic.any?
|
434
|
+
sleep(1.5)
|
435
|
+
end
|
436
|
+
rescue
|
426
437
|
end
|
427
438
|
|
428
439
|
# 한 페이지에 게시글이 15개씩 있다고 가정
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zon_blog_cafe_comment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zon
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-07-
|
10
|
+
date: 2025-07-16 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: File to Clipboard gem
|
13
13
|
email: mymin26@naver.com
|