var config = require("../helpers/config.js");var until = require('selenium-webdriver').until;var login = function() { var driver = browser.driver; driver.get(config.dsp.url); driver.findElement(by.name("userName")).sendKeys(config.dsp.user); driver.findElement(by.name("password")).sendKeys(config.dsp.password); driver.findElement(by.name("submit")).click(); return driver.wait(until.elementLocated(by.css(".sample-class-name")), 10000) .then(e => driver.wait(until.elementIsVisible(e)), 10000);}module.exports = login;
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)