當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。