posting_zon 0.0.75 → 0.0.79

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 +34 -2
  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: a77293e49e3bb1a4b13cffb0b47d2e45d59cf07d4170814f8d8549e6d3e9864a
4
+ data.tar.gz: b9e5274237d3c2b47063aa9f72cb5462d539b688be5854822fb44c9dd85ec922
5
5
  SHA512:
6
- metadata.gz: 6cea620a4fe5dfe46f1edd409baed9d85342433479b8111d126e2a916cb56c2831b0c9fba678802dab7bdd4d16546b47500d6d79660eb35dee1ff0f5be68ead1
7
- data.tar.gz: 3d2101b4eee605c8beaeb3ed9858c10e140a30e390976af01fcb295aafb8d64a416385745c4eab3bb1bd2bd6ca3b53d05073d63f573845ff87255edcfb5c62fd
6
+ metadata.gz: 728bd32dbb0202a518afe1c8de11fc574c85cdcb25ca3accf66081687fb8d29a83cfe44dbc43b5e928a8e0311f3bd8a4223edaf4b4719a9ed93ab344ee8bde6e
7
+ data.tar.gz: d8387667968927007406499a5632ba54373f3a7ecd391dbd8d9668af461c6b730c604091fcd044e56b1b07ebb34708cea4b15ba14358f2213f4547b754d03772
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' 배열로 설정
@@ -355,7 +382,7 @@ class Naver
355
382
  left_click
356
383
  sleep(1)
357
384
  # 루비에서 'tab' 키를 0.5초마다 7번 누르기
358
- 6.times do
385
+ 7.times do
359
386
  key_stroke('tab') # 'tab' 키를 입력
360
387
  sleep(0.5) # 0.5초 대기
361
388
  end
@@ -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.79
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