Привет. Помогите кликнуть по пункту, выпдающему в дропдауне типа вот такого https://developers.g...laceid-geocoder.
WebdriverIO.... Сойдет и Selenium-Webdriver, если есть идеи )
Не получается найти локатор нужного элемента.....
01 июля 2019 - 11:42
Привет. Помогите кликнуть по пункту, выпдающему в дропдауне типа вот такого https://developers.g...laceid-geocoder.
WebdriverIO.... Сойдет и Selenium-Webdriver, если есть идеи )
Не получается найти локатор нужного элемента.....
19 июня 2019 - 07:41
Привет Помогите пожалуйста сделать так чтоб:
1. Тесты запускались по очереди (после завершения первого теста, запускается второй, третий и так далее (только после завершения предыдущего))
2. каждый новый тест создает новое окно браузера.
Что-то я наворотил и немножко запутался ))
const expect = require('chai').expect; const equal = require('chai').equal; const webdriver = require('selenium-webdriver'); const driver = new webdriver.Builder().forBrowser('chrome').build(); const Key = require('selenium-webdriver'); const By = webdriver.By; describe('Desktop Login', () => { it('Retail', (done) => { setTimeout(() => { driver.get('https://gepur.com').then(async () => { await driver.manage().window().maximize(); await driver.findElement(By.className('h-account')) .then(el => el.click()) .then(() => driver.findElement(By.id('loginform-email'))) .then(el => el.sendKeys('someLogin')) .then(() => driver.findElement(By.id('loginform-password'))) .then(el => el.sendKeys('somePasswd')) .then(() => driver.findElement(By.css('button.btn-basik.btn-sm.btn-black'))) .then(el => el.click()); await driver.sleep(500); let siteUrl = await driver.getCurrentUrl(); expect(siteUrl).to.equal('https://gepur.com/'); await driver.quit(); }); done(); }, 1000); }); it('Wholesale', (done) => { setTimeout(() => { driver.get('https://gepur.com').then(async () => { await driver.manage().window().maximize(); await driver.findElement(By.className('h-account')) .then(el => el.click()) .then(() => driver.findElement(By.id('loginform-email'))) .then(el => el.sendKeys('someLogin')) .then(() => driver.findElement(By.id('loginform-password'))) .then(el => el.sendKeys('somePasswd')) .then(() => driver.findElement(By.css('button.btn-basik.btn-sm.btn-black'))) .then(el => el.click()); await driver.sleep(500); let siteUrl = await driver.getCurrentUrl(); expect(siteUrl).to.equal('https://gepur.com/'); await driver.quit(); }); done(); }, 1000); }); });
12 июня 2019 - 08:50
Привет. не могу кликнуть по кнопке. Помогите пожалуйста.
Дано тест:
const assert = require('assert'); describe('Desktop login', () => { it('Retail login', async () => { await browser.setWindowSize(1024, 768); await browser.url('https://gepur.com'); const loginButton = await $('a.h-account'); await loginButton.click(); const email = await $('id=loginform-email'); email.setValue('login'); const password = await $('id=loginform-password'); password.setValue('password'); browser.debug(); const submitButton = await $('=Войти'); await submitButton.click(); browser.pause(3000); let url1 = await driver.getUrl() browser.pause(3000); await assert.equal(url1, 'https://gepur.com/'); //await loginButton.click(); //const url = browser.getUrl(); //await assert.equal(url, 'https://gepur.com/account/show/main'); }); });
После await submitButton.click(); редиректа на гланую не происходит. кнопка рабочая, руками проверял...... Помогите понять причину пожалуйста )))
Community Forum Software by IP.Board Русификация от IBResource
Лицензия зарегистрирована на: Software-Testing.Ru