board_posting_duo 0.0.11 → 0.0.30
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/board_posting_duo.rb +300 -295
- 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: 15e7b9e8755ad040b8c3e2af16e99101cffd8ebf0128ce2768956d019a622e49
|
4
|
+
data.tar.gz: 8db58677ea5486f099025d7fda209803f9967bf009173c1ced1e06b77c8e07e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18c6d470ce39bafc0008ae23b39e8b207b0ea56caa2db633dd342f7815271013c3d9a7c2c73ac4bc58522b74e09b1712d1e7959a78503ea4b225557970d040a9
|
7
|
+
data.tar.gz: 8fc8f0748bd0b8ad9446c5780786287ced1eae0713b532ece3ac7e6240258e69a7c363e39c17c5eb3d0e25a59393e8e510ac9ac2029ca7e1841042f984921eeb
|
data/lib/board_posting_duo.rb
CHANGED
@@ -1131,50 +1131,60 @@ def update(user_id, user_pw, title, content, option, post_url, signup_url, login
|
|
1131
1131
|
|
1132
1132
|
|
1133
1133
|
|
1134
|
-
sleep(1)
|
1135
1134
|
|
1135
|
+
|
1136
|
+
|
1137
|
+
sleep(1)
|
1136
1138
|
##캡챠 이미지,2캡챠,,등등 코드 부분─────────────────────────────────────────────────────────────────────>
|
1137
1139
|
puts '-[√] 캡챠 유형 탐색.......'.green
|
1140
|
+
|
1141
|
+
|
1138
1142
|
begin
|
1139
1143
|
@driver.switch_to.default_content()
|
1140
|
-
@driver.find_element(:xpath, '//*[@id="mb_kcaptcha"]')
|
1141
|
-
sleep(1)
|
1144
|
+
@driver.find_element(:xpath, '//*[@id="mb_kcaptcha"]')
|
1142
1145
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1143
1146
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1144
|
-
|
1145
|
-
sleep(2)
|
1146
|
-
@driver.manage.window.maximize
|
1147
|
-
sleep(2)
|
1147
|
+
sleep(1)
|
1148
1148
|
mouse_move_percentage(0.3,0.02)
|
1149
1149
|
sleep(0.5)
|
1150
1150
|
left_click
|
1151
1151
|
sleep(1)
|
1152
|
-
|
1153
|
-
|
1152
|
+
@driver.find_element(:xpath, '//*[@id="mb_kcaptcha"]').click
|
1153
|
+
sleep(1)
|
1154
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1155
|
+
#sleep(2)
|
1156
|
+
#@driver.manage.window.maximize
|
1157
|
+
|
1158
|
+
|
1159
|
+
el1 = @driver.find_element(:xpath, '//*[@id="mb_kcaptcha"]')
|
1160
|
+
@driver.action.context_click(el1).perform
|
1154
1161
|
sleep(1)
|
1155
1162
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1156
1163
|
#key_down('shift')
|
1157
1164
|
#key_stroke('m')
|
1158
1165
|
#key_up('shift')
|
1159
|
-
sleep(
|
1166
|
+
sleep(1)
|
1160
1167
|
puts '-[√] 캡챠 코드 타겟 완료1.......'.blue
|
1161
1168
|
rescue
|
1162
1169
|
begin
|
1163
1170
|
@driver.switch_to.default_content()
|
1164
|
-
@driver.find_element(:xpath, '//*[@alt="자동등록방지"]')
|
1165
|
-
sleep(1)
|
1171
|
+
@driver.find_element(:xpath, '//*[@alt="자동등록방지"]')
|
1166
1172
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1167
1173
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1168
|
-
|
1169
|
-
sleep(2)
|
1170
|
-
@driver.manage.window.maximize
|
1171
|
-
sleep(2)
|
1174
|
+
sleep(1)
|
1172
1175
|
mouse_move_percentage(0.3,0.02)
|
1173
1176
|
sleep(0.5)
|
1174
1177
|
left_click
|
1175
|
-
sleep(
|
1176
|
-
|
1177
|
-
|
1178
|
+
sleep(1)
|
1179
|
+
@driver.find_element(:xpath, '//*[@alt="자동등록방지"]').click
|
1180
|
+
sleep(1)
|
1181
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1182
|
+
#sleep(2)
|
1183
|
+
#@driver.manage.window.maximize
|
1184
|
+
|
1185
|
+
|
1186
|
+
el1 = @driver.find_element(:xpath, '//*[@alt="자동등록방지"]')
|
1187
|
+
@driver.action.context_click(el1).perform
|
1178
1188
|
sleep(1)
|
1179
1189
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1180
1190
|
#key_down('shift')
|
@@ -1185,20 +1195,23 @@ rescue
|
|
1185
1195
|
rescue
|
1186
1196
|
begin
|
1187
1197
|
@driver.switch_to.default_content()
|
1188
|
-
@driver.find_element(:xpath, '//*[@id="captcha_img"]')
|
1189
|
-
sleep(1)
|
1198
|
+
@driver.find_element(:xpath, '//*[@id="captcha_img"]')
|
1190
1199
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1191
1200
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1192
|
-
|
1193
|
-
sleep(2)
|
1194
|
-
@driver.manage.window.maximize
|
1195
|
-
sleep(2)
|
1201
|
+
sleep(1)
|
1196
1202
|
mouse_move_percentage(0.3,0.02)
|
1197
1203
|
sleep(0.5)
|
1198
1204
|
left_click
|
1199
|
-
sleep(
|
1200
|
-
|
1201
|
-
|
1205
|
+
sleep(1)
|
1206
|
+
@driver.find_element(:xpath, '//*[@id="captcha_img"]').click
|
1207
|
+
sleep(1)
|
1208
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1209
|
+
#sleep(2)
|
1210
|
+
#@driver.manage.window.maximize
|
1211
|
+
|
1212
|
+
|
1213
|
+
el1 = @driver.find_element(:xpath, '//*[@id="captcha_img"]')
|
1214
|
+
@driver.action.context_click(el1).perform
|
1202
1215
|
sleep(1)
|
1203
1216
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1204
1217
|
#key_down('shift')
|
@@ -1209,20 +1222,23 @@ rescue
|
|
1209
1222
|
rescue
|
1210
1223
|
begin
|
1211
1224
|
@driver.switch_to.default_content()
|
1212
|
-
@driver.find_element(:xpath, '//*[@id="kcaptcha"]')
|
1213
|
-
sleep(1)
|
1225
|
+
@driver.find_element(:xpath, '//*[@id="kcaptcha"]')
|
1214
1226
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1215
1227
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1216
|
-
|
1217
|
-
sleep(2)
|
1218
|
-
@driver.manage.window.maximize
|
1219
|
-
sleep(2)
|
1228
|
+
sleep(1)
|
1220
1229
|
mouse_move_percentage(0.3,0.02)
|
1221
1230
|
sleep(0.5)
|
1222
1231
|
left_click
|
1223
|
-
sleep(
|
1224
|
-
|
1225
|
-
|
1232
|
+
sleep(1)
|
1233
|
+
@driver.find_element(:xpath, '//*[@id="kcaptcha"]').click
|
1234
|
+
sleep(1)
|
1235
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1236
|
+
#sleep(2)
|
1237
|
+
#@driver.manage.window.maximize
|
1238
|
+
|
1239
|
+
|
1240
|
+
el1 = @driver.find_element(:xpath, '//*[@id="kcaptcha"]')
|
1241
|
+
@driver.action.context_click(el1).perform
|
1226
1242
|
sleep(1)
|
1227
1243
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1228
1244
|
#key_down('shift')
|
@@ -1233,20 +1249,22 @@ rescue
|
|
1233
1249
|
rescue
|
1234
1250
|
begin
|
1235
1251
|
@driver.switch_to.default_content()
|
1236
|
-
@driver.find_element(:xpath, '//*[@for="kboard-input-captcha"]')
|
1237
|
-
sleep(1)
|
1252
|
+
@driver.find_element(:xpath, '//*[@for="kboard-input-captcha"]')
|
1238
1253
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1239
1254
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1240
|
-
|
1241
|
-
sleep(2)
|
1242
|
-
@driver.manage.window.maximize
|
1243
|
-
sleep(2)
|
1255
|
+
sleep(1)
|
1244
1256
|
mouse_move_percentage(0.3,0.02)
|
1245
1257
|
sleep(0.5)
|
1246
1258
|
left_click
|
1247
|
-
sleep(
|
1248
|
-
|
1249
|
-
|
1259
|
+
sleep(1)
|
1260
|
+
@driver.find_element(:xpath, '//*[@for="kboard-input-captcha"]').click
|
1261
|
+
sleep(1)
|
1262
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1263
|
+
#sleep(2)
|
1264
|
+
#@driver.manage.window.maximize
|
1265
|
+
|
1266
|
+
el1 = @driver.find_element(:xpath, '//*[@for="kboard-input-captcha"]')
|
1267
|
+
@driver.action.context_click(el1).perform
|
1250
1268
|
sleep(1)
|
1251
1269
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1252
1270
|
#key_down('shift')
|
@@ -1258,20 +1276,23 @@ rescue
|
|
1258
1276
|
begin
|
1259
1277
|
@driver.switch_to.default_content()
|
1260
1278
|
sleep(1)
|
1261
|
-
@driver.find_element(:xpath, '//*[@id="captcha_Write"]')
|
1262
|
-
sleep(1)
|
1279
|
+
@driver.find_element(:xpath, '//*[@id="captcha_Write"]')
|
1263
1280
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1264
1281
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1265
|
-
|
1266
|
-
sleep(2)
|
1267
|
-
@driver.manage.window.maximize
|
1268
|
-
sleep(2)
|
1282
|
+
sleep(1)
|
1269
1283
|
mouse_move_percentage(0.3,0.02)
|
1270
1284
|
sleep(0.5)
|
1271
1285
|
left_click
|
1272
|
-
sleep(
|
1273
|
-
|
1274
|
-
|
1286
|
+
sleep(1)
|
1287
|
+
@driver.find_element(:xpath, '//*[@id="captcha_Write"]').click
|
1288
|
+
sleep(1)
|
1289
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1290
|
+
#sleep(2)
|
1291
|
+
#@driver.manage.window.maximize
|
1292
|
+
|
1293
|
+
|
1294
|
+
el1 = @driver.find_element(:xpath, '//*[@id="captcha_Write"]')
|
1295
|
+
@driver.action.context_click(el1).perform
|
1275
1296
|
sleep(1)
|
1276
1297
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1277
1298
|
#key_down('shift')
|
@@ -1282,21 +1303,24 @@ rescue
|
|
1282
1303
|
rescue
|
1283
1304
|
begin
|
1284
1305
|
@driver.switch_to.default_content()
|
1285
|
-
@driver.find_element(:xpath, '//*[@image-reader="in-progress"]')
|
1286
|
-
sleep(1)
|
1306
|
+
@driver.find_element(:xpath, '//*[@image-reader="in-progress"]')
|
1287
1307
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1288
1308
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1289
|
-
|
1290
|
-
sleep(2)
|
1291
|
-
@driver.manage.window.maximize
|
1292
|
-
sleep(2)
|
1309
|
+
sleep(1)
|
1293
1310
|
mouse_move_percentage(0.3,0.02)
|
1294
1311
|
sleep(0.5)
|
1295
1312
|
left_click
|
1296
1313
|
sleep(1)
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
1314
|
+
@driver.find_element(:xpath, '//*[@image-reader="in-progress"]').click
|
1315
|
+
sleep(1)
|
1316
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1317
|
+
#sleep(2)
|
1318
|
+
#@driver.manage.window.maximize
|
1319
|
+
|
1320
|
+
|
1321
|
+
el1 = @driver.find_element(:xpath, '//*[@image-reader="in-progress"]')
|
1322
|
+
@driver.action.context_click(el1).perform
|
1323
|
+
sleep(1)
|
1300
1324
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1301
1325
|
#key_down('shift')
|
1302
1326
|
#key_stroke('m')
|
@@ -1306,20 +1330,23 @@ rescue
|
|
1306
1330
|
rescue
|
1307
1331
|
begin
|
1308
1332
|
@driver.switch_to.default_content()
|
1309
|
-
@driver.find_element(:xpath, '//*[@id="spamauth"]')
|
1310
|
-
sleep(1)
|
1333
|
+
@driver.find_element(:xpath, '//*[@id="spamauth"]')
|
1311
1334
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1312
1335
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1313
|
-
|
1314
|
-
sleep(2)
|
1315
|
-
@driver.manage.window.maximize
|
1316
|
-
sleep(2)
|
1336
|
+
sleep(1)
|
1317
1337
|
mouse_move_percentage(0.3,0.02)
|
1318
1338
|
sleep(0.5)
|
1319
1339
|
left_click
|
1320
|
-
sleep(
|
1321
|
-
|
1322
|
-
|
1340
|
+
sleep(1)
|
1341
|
+
@driver.find_element(:xpath, '//*[@id="spamauth"]').click
|
1342
|
+
sleep(1)
|
1343
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1344
|
+
#sleep(2)
|
1345
|
+
#@driver.manage.window.maximize
|
1346
|
+
|
1347
|
+
|
1348
|
+
el1 = @driver.find_element(:xpath, '//*[@id="spamauth"]')
|
1349
|
+
@driver.action.context_click(el1).perform
|
1323
1350
|
sleep(1)
|
1324
1351
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1325
1352
|
#key_down('shift')
|
@@ -1330,20 +1357,23 @@ rescue
|
|
1330
1357
|
rescue
|
1331
1358
|
begin
|
1332
1359
|
@driver.switch_to.default_content()
|
1333
|
-
@driver.find_element(:xpath, '//*[@id="norobot_img"]')
|
1334
|
-
sleep(1)
|
1360
|
+
@driver.find_element(:xpath, '//*[@id="norobot_img"]')
|
1335
1361
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
1336
1362
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
1337
|
-
|
1338
|
-
sleep(2)
|
1339
|
-
@driver.manage.window.maximize
|
1340
|
-
sleep(2)
|
1363
|
+
sleep(1)
|
1341
1364
|
mouse_move_percentage(0.3,0.02)
|
1342
1365
|
sleep(0.5)
|
1343
1366
|
left_click
|
1344
|
-
sleep(
|
1345
|
-
|
1346
|
-
|
1367
|
+
sleep(1)
|
1368
|
+
@driver.find_element(:xpath, '//*[@id="norobot_img"]').click
|
1369
|
+
sleep(1)
|
1370
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
1371
|
+
#sleep(2)
|
1372
|
+
#@driver.manage.window.maximize
|
1373
|
+
|
1374
|
+
|
1375
|
+
el1 = @driver.find_element(:xpath, '//*[@id="norobot_img"]')
|
1376
|
+
@driver.action.context_click(el1).perform
|
1347
1377
|
sleep(1)
|
1348
1378
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
1349
1379
|
#key_down('shift')
|
@@ -1363,19 +1393,18 @@ rescue
|
|
1363
1393
|
end
|
1364
1394
|
end
|
1365
1395
|
##캡챠 이미지,2캡챠,,등등 코드 부분─────────────────────────────────────────────────────────────────────>
|
1366
|
-
|
1396
|
+
|
1397
|
+
sleep(1)
|
1398
|
+
|
1367
1399
|
##캡챠 해제 입력 코드 부분─────────────────────────────────────────────────────────────────────>
|
1368
1400
|
puts '-[√] 캡챠 입력 항목 탐색.......'.green
|
1369
1401
|
begin
|
1370
1402
|
@driver.find_element(:xpath, '//*[@name="captcha_key"]').click
|
1371
1403
|
|
1372
1404
|
sleep(1)
|
1373
|
-
|
1374
|
-
|
1375
|
-
|
1376
|
-
sleep(2)
|
1377
|
-
el = @driver.find_element(:xpath, '//*[@name="captcha_key"]')
|
1378
|
-
@driver.action.context_click(el).perform
|
1405
|
+
|
1406
|
+
el2 = @driver.find_element(:xpath, '//*[@name="captcha_key"]')
|
1407
|
+
@driver.action.context_click(el2).perform
|
1379
1408
|
sleep(1)
|
1380
1409
|
@driver.action.key_stroke('up')
|
1381
1410
|
sleep(1)
|
@@ -1402,19 +1431,16 @@ begin
|
|
1402
1431
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1403
1432
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1404
1433
|
end
|
1405
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1434
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1406
1435
|
sleep(1)
|
1407
1436
|
rescue
|
1408
1437
|
begin
|
1409
1438
|
@driver.find_element(:xpath, '//*[@id="captcha_key"]').click
|
1410
|
-
|
1439
|
+
|
1411
1440
|
sleep(1)
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
sleep(2)
|
1416
|
-
el = @driver.find_element(:xpath, '//*[@id="captcha_key"]')
|
1417
|
-
@driver.action.context_click(el).perform
|
1441
|
+
|
1442
|
+
el2 = @driver.find_element(:xpath, '//*[@id="captcha_key"]')
|
1443
|
+
@driver.action.context_click(el2).perform
|
1418
1444
|
|
1419
1445
|
sleep(1)
|
1420
1446
|
@driver.action.key_stroke('up')
|
@@ -1441,19 +1467,16 @@ rescue
|
|
1441
1467
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1442
1468
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1443
1469
|
end
|
1444
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1470
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1445
1471
|
sleep(1)
|
1446
1472
|
rescue
|
1447
1473
|
begin
|
1448
1474
|
@driver.find_element(:xpath, '=//*[@id="code"]').click
|
1449
|
-
|
1475
|
+
|
1450
1476
|
sleep(1)
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1454
|
-
sleep(2)
|
1455
|
-
el = @driver.find_element(:xpath, '//*[@id="code"]')
|
1456
|
-
@driver.action.context_click(el).perform
|
1477
|
+
|
1478
|
+
el2 = @driver.find_element(:xpath, '//*[@id="code"]')
|
1479
|
+
@driver.action.context_click(el2).perform
|
1457
1480
|
|
1458
1481
|
sleep(1)
|
1459
1482
|
@driver.action.key_stroke('up')
|
@@ -1480,19 +1503,16 @@ rescue
|
|
1480
1503
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1481
1504
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1482
1505
|
end
|
1483
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1506
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1484
1507
|
sleep(1)
|
1485
1508
|
rescue
|
1486
1509
|
begin
|
1487
1510
|
@driver.find_element(:xpath, '//*[@id="kboard-input-captcha"]').click
|
1488
|
-
|
1511
|
+
|
1489
1512
|
sleep(1)
|
1490
|
-
|
1491
|
-
|
1492
|
-
|
1493
|
-
sleep(2)
|
1494
|
-
el = @driver.find_element(:xpath, '//*[@id="kboard-input-captcha"]')
|
1495
|
-
@driver.action.context_click(el).perform
|
1513
|
+
|
1514
|
+
el2 = @driver.find_element(:xpath, '//*[@id="kboard-input-captcha"]')
|
1515
|
+
@driver.action.context_click(el2).perform
|
1496
1516
|
|
1497
1517
|
sleep(1)
|
1498
1518
|
@driver.action.key_stroke('up')
|
@@ -1519,19 +1539,16 @@ rescue
|
|
1519
1539
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1520
1540
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1521
1541
|
end
|
1522
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1542
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1523
1543
|
sleep(1)
|
1524
1544
|
rescue
|
1525
1545
|
begin
|
1526
1546
|
@driver.find_element(:xpath, '//*[@fw-label="보안문자"]').click
|
1527
|
-
|
1547
|
+
|
1528
1548
|
sleep(1)
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
sleep(2)
|
1533
|
-
el = @driver.find_element(:xpath, '//*[@fw-label="보안문자"]')
|
1534
|
-
@driver.action.context_click(el).perform
|
1549
|
+
|
1550
|
+
el2 = @driver.find_element(:xpath, '//*[@fw-label="보안문자"]')
|
1551
|
+
@driver.action.context_click(el2).perform
|
1535
1552
|
|
1536
1553
|
sleep(1)
|
1537
1554
|
@driver.action.key_stroke('up')
|
@@ -1558,19 +1575,16 @@ rescue
|
|
1558
1575
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1559
1576
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1560
1577
|
end
|
1561
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1578
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1562
1579
|
sleep(1)
|
1563
1580
|
rescue
|
1564
1581
|
begin
|
1565
1582
|
@driver.find_element(:xpath, '//*[@name="captcha"]').click
|
1566
|
-
|
1583
|
+
|
1567
1584
|
sleep(1)
|
1568
|
-
|
1569
|
-
|
1570
|
-
|
1571
|
-
sleep(2)
|
1572
|
-
el = @driver.find_element(:xpath, '//*[@name="captcha"]')
|
1573
|
-
@driver.action.context_click(el).perform
|
1585
|
+
|
1586
|
+
el2 = @driver.find_element(:xpath, '//*[@name="captcha"]')
|
1587
|
+
@driver.action.context_click(el2).perform
|
1574
1588
|
|
1575
1589
|
sleep(1)
|
1576
1590
|
@driver.action.key_stroke('up')
|
@@ -1597,19 +1611,16 @@ rescue
|
|
1597
1611
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1598
1612
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1599
1613
|
end
|
1600
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1614
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1601
1615
|
sleep(1)
|
1602
1616
|
rescue
|
1603
1617
|
begin
|
1604
1618
|
@driver.find_element(:xpath, '//*[@id="spamCode"]').click
|
1605
|
-
|
1619
|
+
|
1606
1620
|
sleep(1)
|
1607
|
-
|
1608
|
-
|
1609
|
-
|
1610
|
-
sleep(2)
|
1611
|
-
el = @driver.find_element(:xpath, '//*[@id="spamCode"]')
|
1612
|
-
@driver.action.context_click(el).perform
|
1621
|
+
|
1622
|
+
el2 = @driver.find_element(:xpath, '//*[@id="spamCode"]')
|
1623
|
+
@driver.action.context_click(el2).perform
|
1613
1624
|
|
1614
1625
|
sleep(1)
|
1615
1626
|
@driver.action.key_stroke('up')
|
@@ -1636,19 +1647,16 @@ rescue
|
|
1636
1647
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1637
1648
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1638
1649
|
end
|
1639
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1650
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1640
1651
|
sleep(1)
|
1641
1652
|
rescue
|
1642
1653
|
begin
|
1643
1654
|
@driver.find_element(:xpath, '//*[@id="norobot_code"]').click
|
1644
|
-
|
1655
|
+
|
1645
1656
|
sleep(1)
|
1646
|
-
|
1647
|
-
|
1648
|
-
|
1649
|
-
sleep(2)
|
1650
|
-
el = @driver.find_element(:xpath, '//*[@id="norobot_code"]')
|
1651
|
-
@driver.action.context_click(el).perform
|
1657
|
+
|
1658
|
+
el2 = @driver.find_element(:xpath, '//*[@id="norobot_code"]')
|
1659
|
+
@driver.action.context_click(el2).perform
|
1652
1660
|
|
1653
1661
|
@driver.action.key_stroke('up')
|
1654
1662
|
sleep(1)
|
@@ -1674,21 +1682,18 @@ rescue
|
|
1674
1682
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1675
1683
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1676
1684
|
end
|
1677
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1685
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1678
1686
|
sleep(1)
|
1679
1687
|
rescue
|
1680
1688
|
begin
|
1681
|
-
|
1689
|
+
@driver.switch_to.default_content()
|
1682
1690
|
sleep(1)
|
1683
1691
|
@driver.find_element(:xpath, '//*[@name="kcaptcha_code"]').click
|
1684
|
-
|
1692
|
+
|
1685
1693
|
sleep(1)
|
1686
|
-
|
1687
|
-
|
1688
|
-
|
1689
|
-
sleep(2)
|
1690
|
-
el = @driver.find_element(:xpath, '//*[@name="kcaptcha_code"]')
|
1691
|
-
@driver.action.context_click(el).perform
|
1694
|
+
|
1695
|
+
el2 = @driver.find_element(:xpath, '//*[@name="kcaptcha_code"]')
|
1696
|
+
@driver.action.context_click(el2).perform
|
1692
1697
|
|
1693
1698
|
sleep(1)
|
1694
1699
|
@driver.action.key_stroke('up')
|
@@ -1715,8 +1720,8 @@ rescue
|
|
1715
1720
|
#요소가 나타날 때까지 7초 동안 기다립니다.
|
1716
1721
|
wait.until { @driver.find_element(:xpath, '//*[@class="captcha-solver captcha-solver_inner"]') }
|
1717
1722
|
end
|
1718
|
-
puts '-[√] 캡챠 코드 타겟 완료2.......
|
1719
|
-
sleep(1)
|
1723
|
+
puts '-[√] 캡챠 코드 타겟 완료2.......'.blue
|
1724
|
+
sleep(1)
|
1720
1725
|
rescue
|
1721
1726
|
|
1722
1727
|
end
|
@@ -1732,7 +1737,6 @@ end
|
|
1732
1737
|
|
1733
1738
|
|
1734
1739
|
|
1735
|
-
|
1736
1740
|
sleep(1)
|
1737
1741
|
##캡챠 해제 입력 코드 부분─────────────────────────────────────────────────────────────────────>
|
1738
1742
|
begin
|
@@ -5343,22 +5347,27 @@ end
|
|
5343
5347
|
sleep(1)
|
5344
5348
|
##캡챠 이미지,2캡챠,,등등 코드 부분─────────────────────────────────────────────────────────────────────>
|
5345
5349
|
puts '-[√] 캡챠 유형 탐색.......'.green
|
5350
|
+
|
5351
|
+
|
5346
5352
|
begin
|
5347
5353
|
@driver.switch_to.default_content()
|
5348
|
-
@driver.find_element(:xpath, '//*[@id="mb_kcaptcha"]')
|
5349
|
-
sleep(1)
|
5354
|
+
@driver.find_element(:xpath, '//*[@id="mb_kcaptcha"]')
|
5350
5355
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5351
5356
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5352
|
-
|
5353
|
-
sleep(2)
|
5354
|
-
@driver.manage.window.maximize
|
5355
|
-
sleep(2)
|
5357
|
+
sleep(1)
|
5356
5358
|
mouse_move_percentage(0.3,0.02)
|
5357
5359
|
sleep(0.5)
|
5358
5360
|
left_click
|
5359
|
-
sleep(
|
5360
|
-
|
5361
|
-
|
5361
|
+
sleep(1)
|
5362
|
+
@driver.find_element(:xpath, '//*[@id="mb_kcaptcha"]').click
|
5363
|
+
sleep(1)
|
5364
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5365
|
+
#sleep(2)
|
5366
|
+
#@driver.manage.window.maximize
|
5367
|
+
|
5368
|
+
|
5369
|
+
el1 = @driver.find_element(:xpath, '//*[@id="mb_kcaptcha"]')
|
5370
|
+
@driver.action.context_click(el1).perform
|
5362
5371
|
sleep(1)
|
5363
5372
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5364
5373
|
#key_down('shift')
|
@@ -5369,20 +5378,23 @@ begin
|
|
5369
5378
|
rescue
|
5370
5379
|
begin
|
5371
5380
|
@driver.switch_to.default_content()
|
5372
|
-
@driver.find_element(:xpath, '//*[@alt="자동등록방지"]')
|
5373
|
-
sleep(1)
|
5381
|
+
@driver.find_element(:xpath, '//*[@alt="자동등록방지"]')
|
5374
5382
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5375
5383
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5376
|
-
|
5377
|
-
sleep(2)
|
5378
|
-
@driver.manage.window.maximize
|
5379
|
-
sleep(2)
|
5384
|
+
sleep(1)
|
5380
5385
|
mouse_move_percentage(0.3,0.02)
|
5381
5386
|
sleep(0.5)
|
5382
5387
|
left_click
|
5383
|
-
sleep(
|
5384
|
-
|
5385
|
-
|
5388
|
+
sleep(1)
|
5389
|
+
@driver.find_element(:xpath, '//*[@alt="자동등록방지"]').click
|
5390
|
+
sleep(1)
|
5391
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5392
|
+
#sleep(2)
|
5393
|
+
#@driver.manage.window.maximize
|
5394
|
+
|
5395
|
+
|
5396
|
+
el1 = @driver.find_element(:xpath, '//*[@alt="자동등록방지"]')
|
5397
|
+
@driver.action.context_click(el1).perform
|
5386
5398
|
sleep(1)
|
5387
5399
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5388
5400
|
#key_down('shift')
|
@@ -5393,20 +5405,23 @@ rescue
|
|
5393
5405
|
rescue
|
5394
5406
|
begin
|
5395
5407
|
@driver.switch_to.default_content()
|
5396
|
-
@driver.find_element(:xpath, '//*[@id="captcha_img"]')
|
5397
|
-
sleep(1)
|
5408
|
+
@driver.find_element(:xpath, '//*[@id="captcha_img"]')
|
5398
5409
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5399
5410
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5400
|
-
|
5401
|
-
sleep(2)
|
5402
|
-
@driver.manage.window.maximize
|
5403
|
-
sleep(2)
|
5411
|
+
sleep(1)
|
5404
5412
|
mouse_move_percentage(0.3,0.02)
|
5405
5413
|
sleep(0.5)
|
5406
5414
|
left_click
|
5407
|
-
sleep(
|
5408
|
-
|
5409
|
-
|
5415
|
+
sleep(1)
|
5416
|
+
@driver.find_element(:xpath, '//*[@id="captcha_img"]').click
|
5417
|
+
sleep(1)
|
5418
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5419
|
+
#sleep(2)
|
5420
|
+
#@driver.manage.window.maximize
|
5421
|
+
|
5422
|
+
|
5423
|
+
el1 = @driver.find_element(:xpath, '//*[@id="captcha_img"]')
|
5424
|
+
@driver.action.context_click(el1).perform
|
5410
5425
|
sleep(1)
|
5411
5426
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5412
5427
|
#key_down('shift')
|
@@ -5417,20 +5432,23 @@ rescue
|
|
5417
5432
|
rescue
|
5418
5433
|
begin
|
5419
5434
|
@driver.switch_to.default_content()
|
5420
|
-
@driver.find_element(:xpath, '//*[@id="kcaptcha"]')
|
5421
|
-
sleep(1)
|
5435
|
+
@driver.find_element(:xpath, '//*[@id="kcaptcha"]')
|
5422
5436
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5423
5437
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5424
|
-
|
5425
|
-
sleep(2)
|
5426
|
-
@driver.manage.window.maximize
|
5427
|
-
sleep(2)
|
5438
|
+
sleep(1)
|
5428
5439
|
mouse_move_percentage(0.3,0.02)
|
5429
5440
|
sleep(0.5)
|
5430
5441
|
left_click
|
5431
|
-
sleep(
|
5432
|
-
|
5433
|
-
|
5442
|
+
sleep(1)
|
5443
|
+
@driver.find_element(:xpath, '//*[@id="kcaptcha"]').click
|
5444
|
+
sleep(1)
|
5445
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5446
|
+
#sleep(2)
|
5447
|
+
#@driver.manage.window.maximize
|
5448
|
+
|
5449
|
+
|
5450
|
+
el1 = @driver.find_element(:xpath, '//*[@id="kcaptcha"]')
|
5451
|
+
@driver.action.context_click(el1).perform
|
5434
5452
|
sleep(1)
|
5435
5453
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5436
5454
|
#key_down('shift')
|
@@ -5441,20 +5459,22 @@ rescue
|
|
5441
5459
|
rescue
|
5442
5460
|
begin
|
5443
5461
|
@driver.switch_to.default_content()
|
5444
|
-
@driver.find_element(:xpath, '//*[@for="kboard-input-captcha"]')
|
5445
|
-
sleep(1)
|
5462
|
+
@driver.find_element(:xpath, '//*[@for="kboard-input-captcha"]')
|
5446
5463
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5447
5464
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5448
|
-
|
5449
|
-
sleep(2)
|
5450
|
-
@driver.manage.window.maximize
|
5451
|
-
sleep(2)
|
5465
|
+
sleep(1)
|
5452
5466
|
mouse_move_percentage(0.3,0.02)
|
5453
5467
|
sleep(0.5)
|
5454
5468
|
left_click
|
5455
|
-
sleep(
|
5456
|
-
|
5457
|
-
|
5469
|
+
sleep(1)
|
5470
|
+
@driver.find_element(:xpath, '//*[@for="kboard-input-captcha"]').click
|
5471
|
+
sleep(1)
|
5472
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5473
|
+
#sleep(2)
|
5474
|
+
#@driver.manage.window.maximize
|
5475
|
+
|
5476
|
+
el1 = @driver.find_element(:xpath, '//*[@for="kboard-input-captcha"]')
|
5477
|
+
@driver.action.context_click(el1).perform
|
5458
5478
|
sleep(1)
|
5459
5479
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5460
5480
|
#key_down('shift')
|
@@ -5466,20 +5486,23 @@ rescue
|
|
5466
5486
|
begin
|
5467
5487
|
@driver.switch_to.default_content()
|
5468
5488
|
sleep(1)
|
5469
|
-
@driver.find_element(:xpath, '//*[@id="captcha_Write"]')
|
5470
|
-
sleep(1)
|
5489
|
+
@driver.find_element(:xpath, '//*[@id="captcha_Write"]')
|
5471
5490
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5472
5491
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5473
|
-
|
5474
|
-
sleep(2)
|
5475
|
-
@driver.manage.window.maximize
|
5476
|
-
sleep(2)
|
5492
|
+
sleep(1)
|
5477
5493
|
mouse_move_percentage(0.3,0.02)
|
5478
5494
|
sleep(0.5)
|
5479
5495
|
left_click
|
5480
|
-
sleep(
|
5481
|
-
|
5482
|
-
|
5496
|
+
sleep(1)
|
5497
|
+
@driver.find_element(:xpath, '//*[@id="captcha_Write"]').click
|
5498
|
+
sleep(1)
|
5499
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5500
|
+
#sleep(2)
|
5501
|
+
#@driver.manage.window.maximize
|
5502
|
+
|
5503
|
+
|
5504
|
+
el1 = @driver.find_element(:xpath, '//*[@id="captcha_Write"]')
|
5505
|
+
@driver.action.context_click(el1).perform
|
5483
5506
|
sleep(1)
|
5484
5507
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5485
5508
|
#key_down('shift')
|
@@ -5490,20 +5513,23 @@ rescue
|
|
5490
5513
|
rescue
|
5491
5514
|
begin
|
5492
5515
|
@driver.switch_to.default_content()
|
5493
|
-
@driver.find_element(:xpath, '//*[@image-reader="in-progress"]')
|
5494
|
-
sleep(1)
|
5516
|
+
@driver.find_element(:xpath, '//*[@image-reader="in-progress"]')
|
5495
5517
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5496
5518
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5497
|
-
|
5498
|
-
sleep(2)
|
5499
|
-
@driver.manage.window.maximize
|
5500
|
-
sleep(2)
|
5519
|
+
sleep(1)
|
5501
5520
|
mouse_move_percentage(0.3,0.02)
|
5502
5521
|
sleep(0.5)
|
5503
5522
|
left_click
|
5504
|
-
sleep(
|
5505
|
-
|
5506
|
-
|
5523
|
+
sleep(1)
|
5524
|
+
@driver.find_element(:xpath, '//*[@image-reader="in-progress"]').click
|
5525
|
+
sleep(1)
|
5526
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5527
|
+
#sleep(2)
|
5528
|
+
#@driver.manage.window.maximize
|
5529
|
+
|
5530
|
+
|
5531
|
+
el1 = @driver.find_element(:xpath, '//*[@image-reader="in-progress"]')
|
5532
|
+
@driver.action.context_click(el1).perform
|
5507
5533
|
sleep(1)
|
5508
5534
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5509
5535
|
#key_down('shift')
|
@@ -5514,20 +5540,23 @@ rescue
|
|
5514
5540
|
rescue
|
5515
5541
|
begin
|
5516
5542
|
@driver.switch_to.default_content()
|
5517
|
-
@driver.find_element(:xpath, '//*[@id="spamauth"]')
|
5518
|
-
sleep(1)
|
5543
|
+
@driver.find_element(:xpath, '//*[@id="spamauth"]')
|
5519
5544
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5520
5545
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5521
|
-
|
5522
|
-
sleep(2)
|
5523
|
-
@driver.manage.window.maximize
|
5524
|
-
sleep(2)
|
5546
|
+
sleep(1)
|
5525
5547
|
mouse_move_percentage(0.3,0.02)
|
5526
5548
|
sleep(0.5)
|
5527
5549
|
left_click
|
5528
|
-
sleep(
|
5529
|
-
|
5530
|
-
|
5550
|
+
sleep(1)
|
5551
|
+
@driver.find_element(:xpath, '//*[@id="spamauth"]').click
|
5552
|
+
sleep(1)
|
5553
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5554
|
+
#sleep(2)
|
5555
|
+
#@driver.manage.window.maximize
|
5556
|
+
|
5557
|
+
|
5558
|
+
el1 = @driver.find_element(:xpath, '//*[@id="spamauth"]')
|
5559
|
+
@driver.action.context_click(el1).perform
|
5531
5560
|
sleep(1)
|
5532
5561
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5533
5562
|
#key_down('shift')
|
@@ -5538,20 +5567,23 @@ rescue
|
|
5538
5567
|
rescue
|
5539
5568
|
begin
|
5540
5569
|
@driver.switch_to.default_content()
|
5541
|
-
@driver.find_element(:xpath, '//*[@id="norobot_img"]')
|
5542
|
-
sleep(1)
|
5570
|
+
@driver.find_element(:xpath, '//*[@id="norobot_img"]')
|
5543
5571
|
puts '-[√] 캡챠 발견!! 캡차 해제를 위한 환경설정 약 10초 소요.......'.red
|
5544
5572
|
puts '-[√] 챕챠 해제 중~ 해제 완료까지 마우스 움직이지 마세요.......'.red
|
5545
|
-
|
5546
|
-
sleep(2)
|
5547
|
-
@driver.manage.window.maximize
|
5548
|
-
sleep(2)
|
5573
|
+
sleep(1)
|
5549
5574
|
mouse_move_percentage(0.3,0.02)
|
5550
5575
|
sleep(0.5)
|
5551
5576
|
left_click
|
5552
|
-
sleep(
|
5553
|
-
|
5554
|
-
|
5577
|
+
sleep(1)
|
5578
|
+
@driver.find_element(:xpath, '//*[@id="norobot_img"]').click
|
5579
|
+
sleep(1)
|
5580
|
+
#@driver.manage.window.position = Selenium::WebDriver::Point.new(0, 0)
|
5581
|
+
#sleep(2)
|
5582
|
+
#@driver.manage.window.maximize
|
5583
|
+
|
5584
|
+
|
5585
|
+
el1 = @driver.find_element(:xpath, '//*[@id="norobot_img"]')
|
5586
|
+
@driver.action.context_click(el1).perform
|
5555
5587
|
sleep(1)
|
5556
5588
|
@driver.action.key_down(:shift).key_stroke('m').key_up(:shift).perform #컨트롤+a
|
5557
5589
|
#key_down('shift')
|
@@ -5580,12 +5612,9 @@ begin
|
|
5580
5612
|
@driver.find_element(:xpath, '//*[@name="captcha_key"]').click
|
5581
5613
|
|
5582
5614
|
sleep(1)
|
5583
|
-
|
5584
|
-
|
5585
|
-
|
5586
|
-
sleep(2)
|
5587
|
-
el = @driver.find_element(:xpath, '//*[@name="captcha_key"]')
|
5588
|
-
@driver.action.context_click(el).perform
|
5615
|
+
|
5616
|
+
el2 = @driver.find_element(:xpath, '//*[@name="captcha_key"]')
|
5617
|
+
@driver.action.context_click(el2).perform
|
5589
5618
|
sleep(1)
|
5590
5619
|
@driver.action.key_stroke('up')
|
5591
5620
|
sleep(1)
|
@@ -5619,12 +5648,9 @@ rescue
|
|
5619
5648
|
@driver.find_element(:xpath, '//*[@id="captcha_key"]').click
|
5620
5649
|
|
5621
5650
|
sleep(1)
|
5622
|
-
|
5623
|
-
|
5624
|
-
|
5625
|
-
sleep(2)
|
5626
|
-
el = @driver.find_element(:xpath, '//*[@id="captcha_key"]')
|
5627
|
-
@driver.action.context_click(el).perform
|
5651
|
+
|
5652
|
+
el2 = @driver.find_element(:xpath, '//*[@id="captcha_key"]')
|
5653
|
+
@driver.action.context_click(el2).perform
|
5628
5654
|
|
5629
5655
|
sleep(1)
|
5630
5656
|
@driver.action.key_stroke('up')
|
@@ -5658,12 +5684,9 @@ rescue
|
|
5658
5684
|
@driver.find_element(:xpath, '=//*[@id="code"]').click
|
5659
5685
|
|
5660
5686
|
sleep(1)
|
5661
|
-
|
5662
|
-
|
5663
|
-
|
5664
|
-
sleep(2)
|
5665
|
-
el = @driver.find_element(:xpath, '//*[@id="code"]')
|
5666
|
-
@driver.action.context_click(el).perform
|
5687
|
+
|
5688
|
+
el2 = @driver.find_element(:xpath, '//*[@id="code"]')
|
5689
|
+
@driver.action.context_click(el2).perform
|
5667
5690
|
|
5668
5691
|
sleep(1)
|
5669
5692
|
@driver.action.key_stroke('up')
|
@@ -5697,12 +5720,9 @@ rescue
|
|
5697
5720
|
@driver.find_element(:xpath, '//*[@id="kboard-input-captcha"]').click
|
5698
5721
|
|
5699
5722
|
sleep(1)
|
5700
|
-
|
5701
|
-
|
5702
|
-
|
5703
|
-
sleep(2)
|
5704
|
-
el = @driver.find_element(:xpath, '//*[@id="kboard-input-captcha"]')
|
5705
|
-
@driver.action.context_click(el).perform
|
5723
|
+
|
5724
|
+
el2 = @driver.find_element(:xpath, '//*[@id="kboard-input-captcha"]')
|
5725
|
+
@driver.action.context_click(el2).perform
|
5706
5726
|
|
5707
5727
|
sleep(1)
|
5708
5728
|
@driver.action.key_stroke('up')
|
@@ -5736,12 +5756,9 @@ rescue
|
|
5736
5756
|
@driver.find_element(:xpath, '//*[@fw-label="보안문자"]').click
|
5737
5757
|
|
5738
5758
|
sleep(1)
|
5739
|
-
|
5740
|
-
|
5741
|
-
|
5742
|
-
sleep(2)
|
5743
|
-
el = @driver.find_element(:xpath, '//*[@fw-label="보안문자"]')
|
5744
|
-
@driver.action.context_click(el).perform
|
5759
|
+
|
5760
|
+
el2 = @driver.find_element(:xpath, '//*[@fw-label="보안문자"]')
|
5761
|
+
@driver.action.context_click(el2).perform
|
5745
5762
|
|
5746
5763
|
sleep(1)
|
5747
5764
|
@driver.action.key_stroke('up')
|
@@ -5775,12 +5792,9 @@ rescue
|
|
5775
5792
|
@driver.find_element(:xpath, '//*[@name="captcha"]').click
|
5776
5793
|
|
5777
5794
|
sleep(1)
|
5778
|
-
|
5779
|
-
|
5780
|
-
|
5781
|
-
sleep(2)
|
5782
|
-
el = @driver.find_element(:xpath, '//*[@name="captcha"]')
|
5783
|
-
@driver.action.context_click(el).perform
|
5795
|
+
|
5796
|
+
el2 = @driver.find_element(:xpath, '//*[@name="captcha"]')
|
5797
|
+
@driver.action.context_click(el2).perform
|
5784
5798
|
|
5785
5799
|
sleep(1)
|
5786
5800
|
@driver.action.key_stroke('up')
|
@@ -5814,12 +5828,9 @@ rescue
|
|
5814
5828
|
@driver.find_element(:xpath, '//*[@id="spamCode"]').click
|
5815
5829
|
|
5816
5830
|
sleep(1)
|
5817
|
-
|
5818
|
-
|
5819
|
-
|
5820
|
-
sleep(2)
|
5821
|
-
el = @driver.find_element(:xpath, '//*[@id="spamCode"]')
|
5822
|
-
@driver.action.context_click(el).perform
|
5831
|
+
|
5832
|
+
el2 = @driver.find_element(:xpath, '//*[@id="spamCode"]')
|
5833
|
+
@driver.action.context_click(el2).perform
|
5823
5834
|
|
5824
5835
|
sleep(1)
|
5825
5836
|
@driver.action.key_stroke('up')
|
@@ -5853,12 +5864,9 @@ rescue
|
|
5853
5864
|
@driver.find_element(:xpath, '//*[@id="norobot_code"]').click
|
5854
5865
|
|
5855
5866
|
sleep(1)
|
5856
|
-
|
5857
|
-
|
5858
|
-
|
5859
|
-
sleep(2)
|
5860
|
-
el = @driver.find_element(:xpath, '//*[@id="norobot_code"]')
|
5861
|
-
@driver.action.context_click(el).perform
|
5867
|
+
|
5868
|
+
el2 = @driver.find_element(:xpath, '//*[@id="norobot_code"]')
|
5869
|
+
@driver.action.context_click(el2).perform
|
5862
5870
|
|
5863
5871
|
@driver.action.key_stroke('up')
|
5864
5872
|
sleep(1)
|
@@ -5893,12 +5901,9 @@ rescue
|
|
5893
5901
|
@driver.find_element(:xpath, '//*[@name="kcaptcha_code"]').click
|
5894
5902
|
|
5895
5903
|
sleep(1)
|
5896
|
-
|
5897
|
-
|
5898
|
-
|
5899
|
-
sleep(2)
|
5900
|
-
el = @driver.find_element(:xpath, '//*[@name="kcaptcha_code"]')
|
5901
|
-
@driver.action.context_click(el).perform
|
5904
|
+
|
5905
|
+
el2 = @driver.find_element(:xpath, '//*[@name="kcaptcha_code"]')
|
5906
|
+
@driver.action.context_click(el2).perform
|
5902
5907
|
|
5903
5908
|
sleep(1)
|
5904
5909
|
@driver.action.key_stroke('up')
|
@@ -5986,13 +5991,13 @@ end
|
|
5986
5991
|
##등록 버튼 코드 부분─────────────────────────────────────────────────────────────────────>
|
5987
5992
|
puts '-[√] HTML 버튼 복구 여부 체크.......'.yellow
|
5988
5993
|
begin
|
5989
|
-
@driver.find_element(:xpath, '//*[@aria-label="코드 보기"]')
|
5994
|
+
@driver.find_element(:xpath, '//*[@aria-label="코드 보기"]')
|
5990
5995
|
sleep(1)
|
5991
5996
|
@driver.find_element(:xpath, '//*[@aria-label="코드 보기"]').click
|
5992
5997
|
sleep(1)
|
5993
5998
|
rescue
|
5994
5999
|
begin
|
5995
|
-
@driver.find_element(:xpath, '//*[@class="note-icon-code"]')
|
6000
|
+
@driver.find_element(:xpath, '//*[@class="note-icon-code"]')
|
5996
6001
|
sleep(1)
|
5997
6002
|
@driver.find_element(:xpath, '//*[@class="note-icon-code"]').click
|
5998
6003
|
sleep(1)
|
@@ -6182,7 +6187,7 @@ rescue
|
|
6182
6187
|
begin
|
6183
6188
|
puts '-[√] 등록 버튼 코드 탐색에 실패하였습니다.......'.magenta
|
6184
6189
|
puts '-[√] 다른 방법으로 등록을 시도 합니다.......'.magenta
|
6185
|
-
|
6190
|
+
|
6186
6191
|
sleep(1)
|
6187
6192
|
@driver.find_element(:xpath, '//*[@id="wr_subject"]').send_keys()
|
6188
6193
|
sleep(1)
|