本文整理汇总了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);
};
示例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);
});
示例3: waitToDisappear
static waitToDisappear() {
browser.wait(ExpectedConditions.invisibilityOf(element(by.css('.drawer'))), Constants.longWait);
}
示例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);
});
示例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('')));
示例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);
}
示例7: waitToDisappear
// wait to disappear
static waitToDisappear() {
browser.wait(ExpectedConditions.invisibilityOf(element(by.css('.error'))), Constants.shortWait);
}
示例8: it
it('should close delete alert on cancel', async () => {
await deleteAlert_cancel.click();
browser.wait(ExpectedConditions.invisibilityOf(deleteAlert), navigateSleep);
});