Advertisement
dmimaz

Untitled

Jun 12th, 2019
170
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const assert = require('assert');
  2.  
  3. describe('Desktop login', () => {
  4.     it('Retail login', async () => {
  5.         await browser.setWindowSize(1024, 768);
  6.         await browser.url('https://gepur.com');
  7.         const loginButton = await $('a.h-account');
  8.         await loginButton.click();
  9.         const email = await $('id=loginform-email');
  10.         email.setValue('login');
  11.         const password = await $('id=loginform-password');
  12.         password.setValue('password');
  13.         browser.debug();
  14.         const submitButton = await $('=Войти');
  15.         await submitButton.click();
  16.         browser.pause(3000);
  17.         let url1 = await driver.getUrl()
  18.         browser.pause(3000);
  19.         await assert.equal(url1, 'https://gepur.com/');
  20.         //await loginButton.click();
  21.         //const url = browser.getUrl();
  22.         //await assert.equal(url, 'https://gepur.com/account/show/main');
  23.     });
  24. });
Advertisement
RAW Paste Data Copied
Advertisement