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


TypeScript ExpectedConditions.invisibilityOf方法代码示例

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


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

示例1: navigatePastWelcome

 // Navigate to Editor base page and move past welcome splash
 static navigatePastWelcome() {
   browser.get(browser.baseUrl);
   let elm = element(by.id('welcome_start'));
   browser.wait(ExpectedConditions.presenceOf(elm), Constants.longWait);
   browser.wait(ExpectedConditions.visibilityOf(elm), Constants.longWait);
   this.click(elm);
   browser.wait(ExpectedConditions.invisibilityOf(element(by.css('.welcome'))), Constants.longWait);
 };
开发者ID:bloonbullet,项目名称:composer,代码行数:9,代码来源:operations-helper.ts

示例2: it

 it('displays non-critical errors', () => {
   expect<any>(page.verifyDataPage.importErrors.isPresent()).toBe(true);
   expect<any>(page.verifyDataPage.importErrors.isDisplayed()).toBe(false);
   page.verifyDataPage.nonCriticalErrorsButton.click();
   expect<any>(page.verifyDataPage.title.getText()).toEqual('Verify Data');
   page.formStatus.expectHasNoError();
   expect<any>(page.verifyDataPage.importErrors.isDisplayed()).toBe(true);
   expect(page.verifyDataPage.importErrors.getText())
     .toContain('range file \'TestProj.lift-ranges\' was not found');
   page.verifyDataPage.nonCriticalErrorsButton.click();
   browser.wait(ExpectedConditions.invisibilityOf(page.verifyDataPage.importErrors), constants.conditionTimeout);
   expect<any>(page.verifyDataPage.importErrors.isDisplayed()).toBe(false);
 });
开发者ID:,项目名称:,代码行数:13,代码来源:

示例3: waitToDisappear

 static waitToDisappear() {
     browser.wait(ExpectedConditions.invisibilityOf(element(by.css('.drawer'))), Constants.longWait);
 }
开发者ID:marlonprudente,项目名称:composer,代码行数:3,代码来源:import.ts

示例4: element

 .then(() => {
   let cancelElement = element(by.id('import_cancel'));
   browser.executeScript('arguments[0].scrollIntoView();', cancelElement.getWebElement());
   OperationsHelper.click(cancelElement);
   browser.wait(ExpectedConditions.invisibilityOf(element(by.css('.drawer'))), Constants.longWait);
 });
开发者ID:marlonprudente,项目名称:composer,代码行数:6,代码来源:import.ts

示例5:

By.partialButtonText('searchText');
By.repeater('repeatDescriptor');
By.exactRepeater('repeatDescriptor');
By.cssContainingText('cssSelector', 'searchText');
By.options('optionsDescriptor');
By.deepCss('selector');
By.className('className');
By.css('css');
By.id('id');
By.linkText('linkText');
By.js('js');
By.name('name');
By.partialLinkText('partialText');
By.tagName('tagName');
By.xpath('xpath');
ExpectedConditions.not(() => {});
ExpectedConditions.and(() => {});
ExpectedConditions.and(() => {},() => {});
ExpectedConditions.or(() => {});
ExpectedConditions.or(() => {},() => {});
ExpectedConditions.alertIsPresent();
ExpectedConditions.elementToBeClickable(element(by.css('')));
ExpectedConditions.textToBePresentInElement(element(by.css('')), 'text');
ExpectedConditions.textToBePresentInElementValue(element(by.css('')), 'text');
ExpectedConditions.titleContains('title');
ExpectedConditions.presenceOf(element(by.css('')));
ExpectedConditions.stalenessOf(element(by.css('')));
ExpectedConditions.visibilityOf(element(by.css('')));
ExpectedConditions.invisibilityOf(element(by.css('')));
ExpectedConditions.elementToBeSelected(element(by.css('')));
开发者ID:HelloMQL,项目名称:protractor,代码行数:30,代码来源:test_pass.ts

示例6: confirmReplace

 // Confirm Replace
 static confirmReplace() {
   // Replace modal should be present
   browser.wait(ExpectedConditions.visibilityOf(element(by.css('.replace'))), Constants.shortWait);
   OperationsHelper.click(element(by.id('replace_confirm')));
   browser.wait(ExpectedConditions.invisibilityOf(element(by.css('.replace'))), Constants.shortWait);
 }
开发者ID:bloonbullet,项目名称:composer,代码行数:7,代码来源:replace.ts

示例7: waitToDisappear

 // wait to disappear
 static waitToDisappear() {
   browser.wait(ExpectedConditions.invisibilityOf(element(by.css('.error'))), Constants.shortWait);
 }
开发者ID:marlonprudente,项目名称:composer,代码行数:4,代码来源:error-alert.ts

示例8: it

        it('should close delete alert on cancel', async () => {
            await deleteAlert_cancel.click();

            browser.wait(ExpectedConditions.invisibilityOf(deleteAlert), navigateSleep);

        });
开发者ID:rlasjunies,项目名称:kct,代码行数:6,代码来源:timer-config.e2e-spec.ts


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