Created
February 20, 2023 18:53
-
-
Save billmetangmo/51fac801d02dbd68ded25efed9397b86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var synthetics = require('Synthetics'); | |
| const log = require('SyntheticsLogger'); | |
| const recordedScript = async function () { | |
| let page = await synthetics.getPage(); | |
| await synthetics.executeStep('Goto_0', async function() { | |
| await page.goto("https://mtchoun-mouh.mongulu.cm/", {waitUntil: 'domcontentloaded', timeout: 60000}) | |
| }) | |
| await page.setViewport({ width: 1518, height: 720 }) | |
| await synthetics.executeStep('Click_1', async function() { | |
| await page.waitForSelector('.text-center #name-input') | |
| await page.click('.text-center #name-input') | |
| }) | |
| await synthetics.executeStep('Type_2', async function() { | |
| await page.type('.text-center #name-input', "MET") | |
| }) | |
| await synthetics.executeStep('Click_3', async function() { | |
| await page.waitForSelector('.text-center') | |
| await page.click('.text-center') | |
| }) | |
| await synthetics.executeStep('Click_4', async function() { | |
| await page.waitForSelector('.text-center #email-input') | |
| await page.click('.text-center #email-input') | |
| }) | |
| await synthetics.executeStep('Type_5', async function() { | |
| await page.type('.text-center #email-input', "behanzin777@gmail.com") | |
| }) | |
| await synthetics.executeStep('Click_6', async function() { | |
| await page.waitForSelector('.text-center') | |
| await page.click('.text-center') | |
| }) | |
| await synthetics.executeStep('Click_7', async function() { | |
| await page.waitForSelector('.text-center > #contact-form > a > .btn') | |
| await page.click('.text-center > #contact-form > a > .btn') | |
| }) | |
| await synthetics.executeStep('Click_8', async function() { | |
| await page.waitForSelector('.text-center > .jquery-modal > #confirmationModal > a > .col-4') | |
| await page.click('.text-center > .jquery-modal > #confirmationModal > a > .col-4') | |
| }) | |
| await synthetics.executeStep('Click_9', async function() { | |
| await page.waitForSelector('.text-center > .jquery-modal > #confirmationModal > a > .col-4') | |
| await page.click('.text-center > .jquery-modal > #confirmationModal > a > .col-4') | |
| }) | |
| await synthetics.executeStep('Click_10', async function() { | |
| await page.waitForSelector('.text-center > .jquery-modal') | |
| await page.click('.text-center > .jquery-modal') | |
| }) | |
| await synthetics.executeStep('Click_11', async function() { | |
| await page.waitForSelector('.text-center #errorMessage') | |
| await page.click('.text-center #errorMessage') | |
| }) | |
| await synthetics.executeStep('Click_12', async function() { | |
| await page.waitForSelector('.text-center > .jquery-modal') | |
| await page.click('.text-center > .jquery-modal') | |
| }) | |
| }; | |
| exports.handler = async () => { | |
| return await recordedScript(); | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment