Monday, 1 May 2017

use moment.js to make generate a different email address but use the same inbox

I am Making a sign up automation test for a web form and need to use moment.js to generate a different email time stamp each time I sign up but I need to check it in the same gmail inbox for each test. For example,

test.it('send keys to email field', function () {
    var emailField = driver.findElement(webdriver.By.css('#root > div > div > div.core-layout__viewport.main-content > div > div > div > div.cogs-SignupView-form > form > div:nth-child(4) > div > div > input'));
    emailField.sendKeys('email' + now, '@gmail.com').then(function () {

    })
});



via Alberto Mercado

No comments:

Post a Comment