Skip to content

Commit

Permalink
feat: add 迪卡侬 provider
Browse files Browse the repository at this point in the history
  • Loading branch information
WindomZ committed Dec 2, 2017
1 parent d8dfd8e commit b56be26
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/providers/迪卡侬.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

const Provider = require('../provider');
const utils = require('../utils');

module.exports = class extends Provider {
constructor() {
super();
this.url = `https://www.decathlon.com.cn/zh/create`;
}

async resolve(ctx) {
const options = ctx.options;
const page = ctx.page;

await page.type('input#mobile', options.phone, { delay: 500 });

await page.click('button.cta.right');

// await page.waitForSelector('button.cta right', { timeout: 1000 * 3 });
}
};

0 comments on commit b56be26

Please sign in to comment.