zon_blog_cafe_comment 0.0.72 → 0.0.73

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/zon_blog_cafe_comment.rb +7 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f0cb74abd86b664a657d8be390b67a61c0e050968ef10177b22d2434cd7dc56
4
- data.tar.gz: 729e9c27997dcb4113cd54828ffd66acedc8116bd5951d7beea66fc4c5847568
3
+ metadata.gz: b89710487f59731955fec3059bd3f3c07f9c0bba2124eb247f8d107d0d09ead1
4
+ data.tar.gz: e0de70f2cc1d8c61aeb6b08f0ca6c74b2fe649547959b6b43959291f931cb044
5
5
  SHA512:
6
- metadata.gz: 0e7ceb7febf981a0183b28e586589725e077cb5c5fdbc3c1820823fefa8fc2d15d8a2292bfc532ef32f5cab2c95e346d876082d3cf3ce54045aa791c7e031dae
7
- data.tar.gz: 726d1bc539088178fef345df9f4751cdd66de86205ec8f1ea6091eda112b5965bfe47469e00cccd67f1ec0ce1c1492896cfa1bf2a8bef563056b0c8fc632b82a
6
+ metadata.gz: 136b54f3047625e69df861239093bf4811acbe5e4596291e0b0efb38285d64b2380d397d1b37d71de75244a9ecf89035c3191c5df3fb3cd7890cb9471040ac40
7
+ data.tar.gz: 8c7aba06a923a0c20e6372adb8e75c4829c957d692d5d113f0eff4aabefa6f092e951a26d9c514243cdfda0f7f79250de31bb6d11430f917379ca1a0983e2101
@@ -415,14 +415,13 @@ class Naver
415
415
  end
416
416
 
417
417
  begin
418
- # 아이프레임 요소가 나타날 때까지 기다립니다.
419
- wait = Selenium::WebDriver::Wait.new(:timeout => 5)
420
- wait.until { @driver.find_element(:xpath, '//*[@class="FormInputCheck"]') }
421
- sleep(1)
422
- @driver.find_element(:xpath, '//*[@class="FormInputCheck"]').click
423
- sleep(2)
424
- rescue
425
-
418
+ notic_elements = @driver.find_elements(:css, 'strong.board-tag-txt')
419
+ if notic_elements.any?
420
+ check_notic = @driver.find_elements(:xpath, '//*[@class="FormInputCheck"]')
421
+ check_notic.first.click if check_notic.any?
422
+ sleep(1.5)
423
+ end
424
+ rescue
426
425
  end
427
426
 
428
427
  # 한 페이지에 게시글이 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.72
4
+ version: 0.0.73
5
5
  platform: ruby
6
6
  authors:
7
7
  - zon
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-07-09 00:00:00.000000000 Z
10
+ date: 2025-07-10 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: File to Clipboard gem
13
13
  email: mymin26@naver.com