tg_send_duo 0.0.26 → 0.0.27
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/tg_send_duo.rb +19 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29537b8515a564559869f1e3c2fb0482fdeeb1cd9ec13a32eea2e913df7fad07
|
4
|
+
data.tar.gz: 2104108d036c4b36a40f61c41bee6f3492edb50977d0eb61748871a943c5524b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdaa6e481dc97d58c9e6a0f6474c7429e98f38e9bee834272a09af20a2818f224f999b19c0b98c2d41ddd2a52cc06a2e3a06df671fcdfab5e3435520055601fe
|
7
|
+
data.tar.gz: b59d71704bca2e2bb703808ff155677e0810fdab510389cc79e7492a73fd8ec27eda3c507ed3e2eaa2fb245f154790e111289c807af56921ce862dd0807373c3
|
data/lib/tg_send_duo.rb
CHANGED
@@ -157,15 +157,6 @@ class Naver
|
|
157
157
|
sleep(1)
|
158
158
|
@driver.execute_script("document.body.style.zoom = '70%'")
|
159
159
|
|
160
|
-
begin
|
161
|
-
#검색어가 입력되있는경우 크로스
|
162
|
-
wait = Selenium::WebDriver::Wait.new(:timeout => 1)
|
163
|
-
#요소가 나타날 때까지 3초 동안 기다립니다.
|
164
|
-
wait.until { @driver.find_element(:xpath, '//*[@class="Transition_slide icon-container-slide Transition_slide-active"]') }
|
165
|
-
@driver.find_element(:xpath, '//*[class="Transition_slide icon-container-slide Transition_slide-active"]').click
|
166
|
-
sleep(1)
|
167
|
-
rescue
|
168
|
-
end
|
169
160
|
|
170
161
|
begin
|
171
162
|
wait = Selenium::WebDriver::Wait.new(:timeout => 3)
|
@@ -403,6 +394,15 @@ class Naver
|
|
403
394
|
rescue
|
404
395
|
end
|
405
396
|
|
397
|
+
begin
|
398
|
+
# 예외
|
399
|
+
@driver.find_element(:xpath, '//*[@class="Button tiny translucent round"]')
|
400
|
+
sleep(1)
|
401
|
+
@driver.find_element(:xpath, '//*[@class="Button tiny translucent round"]').click
|
402
|
+
sleep(1)
|
403
|
+
rescue
|
404
|
+
end
|
405
|
+
|
406
406
|
begin
|
407
407
|
@driver.find_element(:xpath, '//*[@ id="telegram-search-input"]')
|
408
408
|
rescue => e
|
@@ -589,6 +589,16 @@ class Naver
|
|
589
589
|
@driver.close
|
590
590
|
rescue
|
591
591
|
end
|
592
|
+
|
593
|
+
begin
|
594
|
+
# 예외
|
595
|
+
@driver.find_element(:xpath, '//*[@class="Button tiny translucent round"]')
|
596
|
+
sleep(1)
|
597
|
+
@driver.find_element(:xpath, '//*[@class="Button tiny translucent round"]').click
|
598
|
+
sleep(1)
|
599
|
+
rescue
|
600
|
+
end
|
601
|
+
|
592
602
|
begin
|
593
603
|
@driver.find_element(:xpath, '//*[@class="ThfRMqwq is-pointer-env is-windows"]')
|
594
604
|
rescue => e
|