njongto_duo 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.
- checksums.yaml +4 -4
- data/lib/njongto_duo.rb +20 -10
- 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: 1c1a360bbb6958d1cdf7abcf979f845d150295fdcabd585e3bb1bc0decdb2c2e
|
4
|
+
data.tar.gz: 3de2e9ca7c53a064d9e44e799e9b11441c9f18eb4834d97c7745f0006cba0b67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aed359a0e435be1a41c1d114d60a88f79aedba98235e9629e863a2bbad19b490cdb2daf1afbb42c94805490b49b13f09847e2b3afc5fff4d5f25a659eb26e3f
|
7
|
+
data.tar.gz: 1d1158da493d4bfcd69a6ad75a7f4c90a81f8b8428221367d60a15d88681fc147653b8e55fb235e08822c55bebbd07afc939a891c38b68c0240e03c6d9b14962
|
data/lib/njongto_duo.rb
CHANGED
@@ -217,19 +217,29 @@ class Naver
|
|
217
217
|
begin
|
218
218
|
wait = Selenium::WebDriver::Wait.new(:timeout => 7)
|
219
219
|
#요소가 나타날 때까지 3초 동안 기다립니다.
|
220
|
-
wait.until { @driver.find_element(:xpath, '//*[@
|
221
|
-
|
222
|
-
@driver.find_element(:xpath, '//*[@id="login_keep_wrap"]/div[1]/label').click
|
223
|
-
sleep(1.5)
|
224
|
-
@driver.find_element(:xpath, '//*[@id="id"]').click
|
220
|
+
wait.until { @driver.find_element(:xpath, '//*[@id="id" and @name="id"]') }
|
221
|
+
@driver.find_element(:xpath, '//*[@id="id" and @name="id"]').click
|
225
222
|
Clipboard.copy(user_id)
|
226
223
|
@driver.action.key_down(:control).send_keys('v').key_up(:control).perform
|
227
224
|
sleep(1.5)
|
228
|
-
@driver.find_element(:xpath, '//*[@id="pw"]').click
|
225
|
+
@driver.find_element(:xpath, '//*[@id="pw" and @name="pw"]').click
|
229
226
|
Clipboard.copy(user_pw)
|
230
227
|
@driver.action.key_down(:control).send_keys('v').key_up(:control).perform
|
231
228
|
sleep(1.5)
|
232
|
-
|
229
|
+
|
230
|
+
begin
|
231
|
+
smart_level_value = @driver.find_element(id: 'smart_LEVEL').attribute('value')
|
232
|
+
if smart_level_value == '1'
|
233
|
+
@driver.find_element(xpath: '//label[@for="switch" and @class="switch_btn"]').click
|
234
|
+
sleep(1.5)
|
235
|
+
end
|
236
|
+
rescue
|
237
|
+
end
|
238
|
+
|
239
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
240
|
+
#요소가 나타날 때까지 3초 동안 기다립니다.
|
241
|
+
wait.until { @driver.find_element(xpath: '//button[@type="submit" and @id="log.login"]') }
|
242
|
+
@driver.find_element(xpath: '//button[@type="submit" and @id="log.login"]').click
|
233
243
|
sleep(2.5)
|
234
244
|
rescue => e
|
235
245
|
puts '-[√] 로딩 지연 접속 실패.......'.red
|
@@ -251,9 +261,9 @@ class Naver
|
|
251
261
|
end
|
252
262
|
|
253
263
|
begin
|
254
|
-
wait = Selenium::WebDriver::Wait.new(:timeout =>
|
264
|
+
wait = Selenium::WebDriver::Wait.new(:timeout => 5)
|
255
265
|
#요소가 나타날 때까지 3초 동안 기다립니다.
|
256
|
-
wait.until { @driver.find_element(:xpath, '//*[@class="MyView-module__btn_logout___bsTOJ"]') }
|
266
|
+
wait.until { @driver.find_element(:xpath, '//*[@type="button" and @class="MyView-module__btn_logout___bsTOJ"]') }
|
257
267
|
|
258
268
|
rescue => e
|
259
269
|
puts '-[√] 로그인 실패.......'.red
|
@@ -268,7 +278,7 @@ class Naver
|
|
268
278
|
end
|
269
279
|
return 0
|
270
280
|
@driver.quit
|
271
|
-
end
|
281
|
+
end
|
272
282
|
end
|
273
283
|
|
274
284
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: njongto_duo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
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-
|
10
|
+
date: 2025-07-08 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: File to Clipboard gem
|
13
13
|
email: mymin26@naver.com
|