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