当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ExpectedConditions.urlContains方法代码示例

本文整理汇总了TypeScript中protractor.ExpectedConditions.urlContains方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ExpectedConditions.urlContains方法的具体用法?TypeScript ExpectedConditions.urlContains怎么用?TypeScript ExpectedConditions.urlContains使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在protractor.ExpectedConditions的用法示例。


在下文中一共展示了ExpectedConditions.urlContains方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: it

 it('should start on login page', () => {
     browser.waitForAngularEnabled(false);
     browser.get('/');
     browser.wait(ExpectedConditions.urlContains('/Identity/Account/Login'), 12000);
     expect(element(by.id('account'))).toBeTruthy(); // the account form is present
     expect(element(by.css('form#account'))).toBeTruthy(); // the account form is present
     const registerLink = element(by.css('form#account p:nth-of-type(2) a'));
     expect(registerLink).toBeTruthy();
     expect(registerLink.getText()).toBe('Register as a new user');
     registerLink.click();
     browser.wait(ExpectedConditions.urlContains('/Identity/Account/Register'), 12000);
 });
开发者ID:lanfeust69,项目名称:LanfeustBridge,代码行数:12,代码来源:app.e2e.ts

示例2: it

        it('should navigate to "about" when clicking on about button', async () => {
            const isDisplayed = await page.aboutMenu$.isDisplayed();

            await page.aboutMenu$.click();
            await browser.sleep(navigateSleep);
            browser.wait(ExpectedConditions.urlContains(page.navigatedTo_About), 5000);
        });
开发者ID:rlasjunies,项目名称:kct,代码行数:7,代码来源:app.e2e-spec.ts

示例3: go

 async go() {
     await browser.get('#/builders');
     await browser.wait(EC.urlContains('#/builders'),
                        5000,
                        "URL does not contain #/builders");
     const localBuilder = element.all(By.linkText(this.builder));
     await localBuilder.click();
 }
开发者ID:cmouse,项目名称:buildbot,代码行数:8,代码来源:builder.ts

示例4: it

 it('should create a ladder with default settings', () => {
   create.navigateTo();
   create.setParameter('name', 'bar');
   create.setParameter('teams_count', '3');
   create.setParameter('players_per_team', '3');
   create.submit();
   browser.wait(ExpectedConditions.urlContains('bar'), 5 * oneSecond);
 });
开发者ID:lrem,项目名称:ladders,代码行数:8,代码来源:app.e2e-spec.ts

示例5: it

 it('redirects to projects page if already logged in', () => {
   BellowsLoginPage.logout();
   loginPage.loginAsUser();
   SignupPage.get();
   browser.wait(ExpectedConditions.urlContains('projects'), constants.conditionTimeout);
   browser.getCurrentUrl().then(() => {
     expect(browser.getCurrentUrl()).toContain('/app/projects');
   });
 });
开发者ID:sillsdev,项目名称:web-languageforge,代码行数:9,代码来源:signup.e2e-spec.ts

示例6: go

 async go() {
     await browser.get('#/waterfall');
     await browser.wait(EC.urlContains('#/waterfall'),
                        10000,
                        "URL does not contain #/waterfall");
     await browser.wait(EC.elementToBeClickable($("div.waterfall")),
                        5000,
                        "waterfall is not clickable");
 }
开发者ID:ewongbb,项目名称:buildbot,代码行数:9,代码来源:waterfall.ts

示例7: go

 async go() {
     await browser.get('#/mydashboard');
     await browser.wait(EC.urlContains('#/mydashboard'),
                        10000,
                        "URL does not contain #/mydashboard");
     var buildLink = element.all(By.linkText("runtests/1")).first();
     await browser.wait(EC.elementToBeClickable(buildLink),
                        500000,
                        "runtests/1 link not clickable");
     await buildLink.click();
 }
开发者ID:ewongbb,项目名称:buildbot,代码行数:11,代码来源:dashboard.ts

示例8: go

 async go() {
     await browser.get('#/builders');
     await browser.wait(EC.urlContains('#/builders'),
                        10000,
                        "URL does not contain #/builders");
     let localBuilder = element(By.linkText(this.builder));
     await browser.wait(EC.elementToBeClickable(localBuilder),
                        5000,
                        "local builder not clickable");
     await localBuilder.click();
 }
开发者ID:ewongbb,项目名称:buildbot,代码行数:11,代码来源:builder.ts


注:本文中的protractor.ExpectedConditions.urlContains方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。