Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang570221322 committed Jun 19, 2020
1 parent 2d3d7a3 commit 9077030
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']+"输入有误");
Expand Down

0 comments on commit 9077030

Please sign in to comment.