本文整理汇总了TypeScript中selenium-webdriver/testing.after函数的典型用法代码示例。如果您正苦于以下问题:TypeScript after函数的具体用法?TypeScript after怎么用?TypeScript after使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了after函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: TestTestingModule
function TestTestingModule() {
testing.before(function () {
});
testing.beforeEach(function () {
});
testing.describe("My test suite", function () {
testing.it("My test", function () {
});
testing.iit("My exclusive test.", function () {
});
});
testing.xdescribe("My disabled suite", function () {
testing.xit("My disabled test.", function () {
});
});
testing.after(function () {
});
testing.afterEach(function () {
});
}
示例2: TestTestingModule
function TestTestingModule() {
testing.before(() => {
});
testing.beforeEach(() => {
});
testing.describe('My test suite', () => {
testing.it('My test', () => {
});
testing.iit('My exclusive test.', () => {
});
});
testing.xdescribe('My disabled suite', () => {
testing.xit('My disabled test.', () => {
});
});
testing.after(() => {
});
testing.afterEach(() => {
});
}
示例3: describe
describe('Google Search', () => {
let driver: WebDriver;
before(() => {
driver = new Builder().forBrowser('firefox').build();
});
beforeEach(() => { });
after(() => {
driver.quit();
});
afterEach(() => { });
it('should append query to title', () => {
const flow = controlFlow();
flow.execute(() => {
driver.get('http://www.google.com/ncr');
driver.findElement(By.name('q')).sendKeys('webdriver');
driver.findElement(By.name('btnG')).click();
driver.wait(until.titleIs('webdriver - Google Search'), 1000);
});
});
});