MCPcopy Index your code
hub / github.com/eclipse-che/che / enterValue

Method enterValue

tests/e2e/utils/DriverHelper.ts:613–629  ·  view source on GitHub ↗
(
		elementLocator: By,
		text: string,
		timeout: number = TIMEOUT_CONSTANTS.TS_SELENIUM_CLICK_ON_VISIBLE_ITEM
	)

Source from the content-addressed store, hash-verified

611 }
612
613 async enterValue(
614 elementLocator: By,
615 text: string,
616 timeout: number = TIMEOUT_CONSTANTS.TS_SELENIUM_CLICK_ON_VISIBLE_ITEM
617 ): Promise<void> {
618 if (elementLocator.toString().toLocaleLowerCase().includes('password')) {
619 Logger.trace(`${elementLocator} text: ***`);
620 } else {
621 Logger.trace(`${elementLocator} text: ${text}`);
622 }
623
624 await this.waitVisibility(elementLocator, timeout);
625 await this.clear(elementLocator);
626 await this.waitAttributeValue(elementLocator, 'value', '', timeout);
627 await this.type(elementLocator, text, timeout);
628 await this.waitAttributeValue(elementLocator, 'value', text, timeout);
629 }
630
631 async waitAndSwitchToFrame(iframeLocator: By, timeout: number): Promise<void> {
632 Logger.trace(`${iframeLocator}`);

Callers 13

scrollToAndEnterValueMethod · 0.95
enterGitRepoUrlMethod · 0.80
enterGitReferenceMethod · 0.80
selectProjectMethod · 0.80
enterPasswordRedHatMethod · 0.80
enterUserNameRedHatMethod · 0.80
enterUserNameMethod · 0.80
enterPasswordMethod · 0.80

Calls 5

waitVisibilityMethod · 0.95
clearMethod · 0.95
waitAttributeValueMethod · 0.95
typeMethod · 0.95
traceMethod · 0.80

Tested by

no test coverage detected