posting_duo 3.111.010 → 3.111.011

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_duo.rb +44 -16
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dc6c520189da98a8d367cb0ade857f60a72631ae0ae4f6c6d9a704329c97a62
4
- data.tar.gz: 4296f207310926768f90ffdd913ec9e596d233c58988f040a69e7f32881c3600
3
+ metadata.gz: a4cd17d412de36d2aec062690f7a3a76d73ac79cb0fcdb484bda70574eedf9fe
4
+ data.tar.gz: 334f73019b768690f1f69885eeda80dade1bf1357b39e09fa000d1957a108145
5
5
  SHA512:
6
- metadata.gz: 431a41d7cfc2cd42d1e25f73d00645b2388cbb5e5c6b0f7d1e27445e520e4ed54ef308d6bd5c1e8d6a5495a4b187188fb7fd28ffc8cb2d8e2b3de0b1393798a1
7
- data.tar.gz: b0c2e8efa4402246d7fd50a5893c195381bc5d51e064d8a10d8d639f95ed8f5a6d86bc77a19097b2d1de7cc60031124f864fdcd6f172904515805d1dc3030fee
6
+ metadata.gz: 93ca8a79e4033389b0978d78ca9c8a19d73398d039637ff899a5c286695f959f06d9050b9f0efdadda741b54a7aef756142fddb4e054abc1367f4e819f362053
7
+ data.tar.gz: a667ed90db900429bc320e084e0714a2e582188353379451ee0f07f0a2b15b4b30dcef6392cfc63bea2d523d17581a07402f8198f523f11f85acef8e40716ec8
data/lib/posting_duo.rb CHANGED
@@ -6891,6 +6891,8 @@ begin
6891
6891
  puts '-[√] 닉네임 26코드 타겟.......'.yellow
6892
6892
  rescue
6893
6893
  begin
6894
+ @driver.find_element(xpath: '//input[@type="text" and @title="글쓴이"]').clear
6895
+ sleep(1)
6894
6896
  @driver.find_element(xpath: '//input[@type="text" and @title="글쓴이"]').send_keys(user_id)
6895
6897
  sleep(1)
6896
6898
  puts '-[√] 닉네임 27코드 타겟.......'.yellow
@@ -7046,7 +7048,13 @@ begin
7046
7048
  sleep(1)
7047
7049
  puts '-[√] 패스워드 21코드 타겟.......'.yellow
7048
7050
  rescue
7049
-
7051
+ begin
7052
+ @driver.find_element(:id, 'userPw').send_keys(user_pw)
7053
+ sleep(1)
7054
+ puts '-[√] 패스워드 22코드 타겟.......'.yellow
7055
+ rescue
7056
+
7057
+ end
7050
7058
  end
7051
7059
  end
7052
7060
  end
@@ -7071,7 +7079,7 @@ begin
7071
7079
  sleep(1)
7072
7080
  end
7073
7081
  ##<─────────────────────────────────────────────────────────────────────패스워드 입력 코드 부분
7074
-
7082
+
7075
7083
  ##패스워드 입력 2차 코드 부분─────────────────────────────────────────────────────────────────────>
7076
7084
  begin
7077
7085
  @driver.find_element(:xpath, '//*[@for="blogPostPassword2"]').send_keys(user_pw)
@@ -8240,12 +8248,22 @@ end
8240
8248
  @driver.find_element(:xpath, '//*[@id="wr_content-html"]').click
8241
8249
  rescue
8242
8250
  begin
8243
-
8244
- html_bb = @driver.find_element(:xpath, '//*[@id="fwrite"]/div[2]/ul/li/label')
8245
- @driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", html_bb)
8246
- puts '-[√] HTML 코드 28 code.......'.yellow
8247
- sleep(1)
8248
- @driver.find_element(:xpath, '//*[@id="fwrite"]/div[2]/ul/li/label').click
8251
+
8252
+ html_bb = @driver.find_element(xpath: '//*[@id="fwrite"]/div[2]/ul/li/label')
8253
+
8254
+ # 텍스트 확인
8255
+ if html_bb.text.include?("비밀글")
8256
+ puts "비밀글 항목이므로 클릭하지 않음"
8257
+ raise #턴 넘김
8258
+ else
8259
+ html_bb = @driver.find_element(:xpath, '//*[@id="fwrite"]/div[2]/ul/li/label')
8260
+ @driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", html_bb)
8261
+ sleep(1)
8262
+ @driver.find_element(:xpath, '//*[@id="fwrite"]/div[2]/ul/li/label').click
8263
+ sleep(1)
8264
+ puts '-[√] HTML 코드 28 code.......'.yellow
8265
+ end
8266
+
8249
8267
  rescue
8250
8268
  begin
8251
8269
  @driver.switch_to.frame(@driver.find_element(:xpath, '//*[@id="NamoSE_Ifr__editor"]'))
@@ -8260,7 +8278,7 @@ end
8260
8278
  @driver.switch_to.default_content()
8261
8279
  html_bb = @driver.find_element(:xpath, '//*[@type="radio" and @name="rg_html_use" and @value="1"]')
8262
8280
  @driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", html_bb)
8263
- puts '-[√] HTML 코드 28 code.......'.yellow
8281
+ puts '-[√] HTML 코드 30 code.......'.yellow
8264
8282
  sleep(1)
8265
8283
  @driver.find_element(:xpath, '//*[@type="radio" and @name="rg_html_use" and @value="1"]').click
8266
8284
  rescue
@@ -8274,7 +8292,7 @@ end
8274
8292
  sleep(1)
8275
8293
  @driver.find_element(:xpath, '//*[@title="HTML 편집기"]').click
8276
8294
  @driver.switch_to.default_content()
8277
- puts '-[√] HTML 코드 29 code.......'.yellow
8295
+ puts '-[√] HTML 코드 31 code.......'.yellow
8278
8296
  sleep(1)
8279
8297
  rescue
8280
8298
  begin
@@ -8284,7 +8302,7 @@ end
8284
8302
  #아이프레임 나오기
8285
8303
  sleep(1)
8286
8304
  @driver.find_element(:xpath, '//*[@type="checkbox" and @name="ctype" and @value="H"]').click
8287
- puts '-[√] HTML 코드 30 code.......'.yellow
8305
+ puts '-[√] HTML 코드 32 code.......'.yellow
8288
8306
  sleep(1)
8289
8307
  rescue
8290
8308
  begin
@@ -8295,7 +8313,7 @@ end
8295
8313
  html_bb = @driver.find_element(:xpath, '//*[@class="combobox_mode"]').click
8296
8314
  sleep(1.5)
8297
8315
  html_bb = @driver.find_element(:xpath, '//*[@key="Html"]').click
8298
- puts '-[√] HTML 코드 31 code.......'.yellow
8316
+ puts '-[√] HTML 코드 33 code.......'.yellow
8299
8317
  sleep(1)
8300
8318
  rescue
8301
8319
  begin
@@ -8303,7 +8321,7 @@ end
8303
8321
  @driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", html_bb)
8304
8322
  sleep(1)
8305
8323
  html_bb = @driver.find_element(:xpath, '//*[@name="use_html"]').click
8306
- puts '-[√] HTML 코드 32 code.......'.yellow
8324
+ puts '-[√] HTML 코드 34 code.......'.yellow
8307
8325
  sleep(1)
8308
8326
  rescue
8309
8327
  begin
@@ -8311,7 +8329,7 @@ end
8311
8329
  @driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", html_bb)
8312
8330
  sleep(1)
8313
8331
  html_bb = @driver.find_element(:xpath, '//*[@class="note-btn btn-codeview note-codeview-keep"]').click
8314
- puts '-[√] HTML 코드 32 code.......'.yellow
8332
+ puts '-[√] HTML 코드 35 code.......'.yellow
8315
8333
  sleep(1)
8316
8334
  rescue
8317
8335
  begin
@@ -8324,7 +8342,7 @@ end
8324
8342
  sleep(1)
8325
8343
  @driver.find_element(:xpath, '//*[@data-button-id="html"]').click
8326
8344
  @driver.switch_to.default_content
8327
- puts '-[√] HTML 코드 33 code.......'.yellow
8345
+ puts '-[√] HTML 코드 36 code.......'.yellow
8328
8346
  sleep(1)
8329
8347
  rescue
8330
8348
  begin
@@ -8333,7 +8351,7 @@ end
8333
8351
  @driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", html_bb)
8334
8352
  sleep(1)
8335
8353
  html_bb = @driver.find_element(xpath: '//a[@href="#htmlEditor" and contains(@onclick, "html")]').click
8336
- puts '-[√] HTML 코드 34 code.......'.yellow
8354
+ puts '-[√] HTML 코드 37 code.......'.yellow
8337
8355
  sleep(1)
8338
8356
  rescue
8339
8357
  begin
@@ -12380,6 +12398,15 @@ ss_button = @driver.find_element(xpath: '//span[@class="button"]/input[@type="su
12380
12398
  puts '-[√] 등록을 52번 코드로 시도하였습니다.......'.magenta
12381
12399
  sleep(1)
12382
12400
 
12401
+ rescue
12402
+ begin
12403
+ ss_button = @driver.find_element(xpath: '//button[@type="submit" and contains(@class, "btn_insert") and contains(normalize-space(.), "등록")]')
12404
+ @driver.execute_script("arguments[0].scrollIntoView({block: 'center', inline: 'center'})", ss_button)
12405
+ sleep(1)
12406
+
12407
+ ss_button = @driver.find_element(xpath: '//button[@type="submit" and contains(@class, "btn_insert") and contains(normalize-space(.), "등록")]').click
12408
+ puts '-[√] 등록을 53번 코드로 시도하였습니다.......'.magenta
12409
+ sleep(1)
12383
12410
 
12384
12411
  rescue
12385
12412
  ########─────────────────────────────▼▼▼▼▼▼▼ 등록버튼 2차 시도 ▼▼▼▼▼▼▼──────────────────────────────#######
@@ -12571,6 +12598,7 @@ end
12571
12598
  end
12572
12599
  end
12573
12600
  end
12601
+ end
12574
12602
  end
12575
12603
  end
12576
12604
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posting_duo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.111.010
4
+ version: 3.111.011
5
5
  platform: ruby
6
6
  authors:
7
7
  - zon
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-06-27 00:00:00.000000000 Z
10
+ date: 2025-06-30 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: File to Clipboard gem
13
13
  email: mymin26@naver.com