From 907703078cb58fe0a10a071129c518216031880b Mon Sep 17 00:00:00 2001 From: zhang570221322 <570221322@qq.com> Date: Fri, 19 Jun 2020 12:43:18 +0800 Subject: [PATCH] update version --- core/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/main.js b/core/main.js index ea01203..075c789 100644 --- a/core/main.js +++ b/core/main.js @@ -54,16 +54,16 @@ function my(test) { await page.waitFor(sleepTime) frames1= await page.frames() const frame_48 = frames1.find(f => f.url().includes('elobby/service/portlet.htm')) - await frame_48.waitForSelector('#form > div.service-wrap > div > ul.service-hall.hottest-services > li:nth-child(2) > div > a > div > div') - await frame_48.click('#form > div.service-wrap > div > ul.service-hall.hottest-services > li:nth-child(2) > div > a > div > div') + await frame_48.waitForSelector('#form > div.service-wrap > div > ul.service-hall.hottest-services > li:nth-child(1) > div > a > div > div') + await frame_48.click('#form > div.service-wrap > div > ul.service-hall.hottest-services > li:nth-child(1) > div > a > div > div') await navigationPromise } else if(_user['type'] == "本科生") { // 选择本科生填报 await page.waitFor(sleepTime) frames1= await page.frames() const frame_48 = frames1.find(f => f.url().includes('elobby/service/portlet.htm')) - await frame_48.waitForSelector('#form > div.service-wrap > div > ul.service-hall.hottest-services > li:nth-child(3) > div > a > div > div') - await frame_48.click('#form > div.service-wrap > div > ul.service-hall.hottest-services > li:nth-child(3) > div > a > div > div') + await frame_48.waitForSelector('#form > div.service-wrap > div > ul.service-hall.hottest-services > li:nth-child(2) > div > a > div > div') + await frame_48.click('#form > div.service-wrap > div > ul.service-hall.hottest-services > li:nth-child(2) > div > a > div > div') await navigationPromise }else{ console.log("_user['type']:"+_user['type']+"输入有误");