posting_zon 0.0.75 → 0.0.77

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/posting_zon.rb +33 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 654719c8241fe873a678814fd3fccd08092029562136f5dfdeb4dce93b390422
4
- data.tar.gz: 793cb84431103ad116c37d88b1832f60f946700b44f3c0cc5aa90a3999795ddf
3
+ metadata.gz: 4c5a3b38e817832ddcb65212a3b5bc281b89c03183644a66efc574c57f614680
4
+ data.tar.gz: 44a8d7af5ec2ca5463a98c7e080642c9e21a9de83e81c78bb234b2752e64ca16
5
5
  SHA512:
6
- metadata.gz: 6cea620a4fe5dfe46f1edd409baed9d85342433479b8111d126e2a916cb56c2831b0c9fba678802dab7bdd4d16546b47500d6d79660eb35dee1ff0f5be68ead1
7
- data.tar.gz: 3d2101b4eee605c8beaeb3ed9858c10e140a30e390976af01fcb295aafb8d64a416385745c4eab3bb1bd2bd6ca3b53d05073d63f573845ff87255edcfb5c62fd
6
+ metadata.gz: 84eab2177ba3fcc07743b356acc798107b0a4070c97fbd7b03c9627d2518a2902cd0728fe790ae60a595a9c0bdaa773ab57a04c065ed41f2b5271847cfc46029
7
+ data.tar.gz: e0ae3b7d9fc866bf8a0436945cf4b6c4d9785fdc32b12fcf37d7c6f500d1f12bd259e56eaa3124cf5a27d26a023822422fdd3e87f98d89824dfae25a2d534172
data/lib/posting_zon.rb CHANGED
@@ -86,6 +86,15 @@ class Naver
86
86
  options.add_argument('--disable-save-password-bubble') # 비밀번호 저장 팝업 비활성화
87
87
  options.add_argument('--disable-password-manager') # 비밀번호 관리 비활성화
88
88
 
89
+
90
+ options.add_argument('--disable-web-security') # 웹 보안 비활성화
91
+ options.add_argument('--allow-running-insecure-content') # HTTPS 사이트에서 HTTP 컨텐츠 실행 허용
92
+ options.exclude_switches = ['enable-automation'] # 자동화 테스트 제거
93
+ options.add_preference("profile.password_manager_enabled", false) # 비밀번호 관리자 비활성화
94
+ options.add_preference("credentials_enable_service", false) # 비밀번호 저장 기능 비활성화
95
+ options.add_preference("profile.default_content_setting_values.notifications", 2) # 알림 차단
96
+ options.add_argument('--disable-software-rasterizer') # 소프트웨어 렌더링 비활성화
97
+
89
98
 
90
99
  # 'capabilities'과 'options' 배열로 설정
91
100
  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
@@ -117,6 +126,15 @@ class Naver
117
126
  options.add_argument('--remote-debugging-port=9222')
118
127
  options.add_argument('user-data-dir=C:/board_cookie')
119
128
 
129
+ options.add_argument('--disable-web-security') # 웹 보안 비활성화
130
+ options.add_argument('--allow-running-insecure-content') # HTTPS 사이트에서 HTTP 컨텐츠 실행 허용
131
+ options.exclude_switches = ['enable-automation'] # 자동화 테스트 제거
132
+ options.add_preference("profile.password_manager_enabled", false) # 비밀번호 관리자 비활성화
133
+ options.add_preference("credentials_enable_service", false) # 비밀번호 저장 기능 비활성화
134
+ options.add_preference("profile.default_content_setting_values.notifications", 2) # 알림 차단
135
+ options.add_argument('--disable-software-rasterizer') # 소프트웨어 렌더링 비활성화
136
+
137
+
120
138
 
121
139
  # 'capabilities'과 'options' 배열로 설정
122
140
  capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
@@ -145,6 +163,15 @@ class Naver
145
163
  options.add_argument('--remote-debugging-port=9222')
146
164
  options.add_argument('user-data-dir=C:/board_cookie')
147
165
 
166
+ options.add_argument('--disable-web-security') # 웹 보안 비활성화
167
+ options.add_argument('--allow-running-insecure-content') # HTTPS 사이트에서 HTTP 컨텐츠 실행 허용
168
+ options.exclude_switches = ['enable-automation'] # 자동화 테스트 제거
169
+ options.add_preference("profile.password_manager_enabled", false) # 비밀번호 관리자 비활성화
170
+ options.add_preference("credentials_enable_service", false) # 비밀번호 저장 기능 비활성화
171
+ options.add_preference("profile.default_content_setting_values.notifications", 2) # 알림 차단
172
+ options.add_argument('--disable-software-rasterizer') # 소프트웨어 렌더링 비활성화
173
+
174
+
148
175
 
149
176
 
150
177
  # 'capabilities'과 'options' 배열로 설정
@@ -5936,7 +5963,12 @@ begin
5936
5963
  @driver.find_element(:xpath, '//*[@for="checkbox-nonMember"]').click
5937
5964
  sleep(1)
5938
5965
  rescue
5939
-
5966
+ begin
5967
+ @driver.find_element(:xpath, '//*[@name="agree_chk"]').click
5968
+ sleep(1)
5969
+ rescue
5970
+
5971
+ end
5940
5972
  end
5941
5973
  end
5942
5974
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posting_zon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.75
4
+ version: 0.0.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - zon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-17 00:00:00.000000000 Z
11
+ date: 2025-04-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: posting app
14
14
  email: mymin26@naver.com