Component evidence
Java record configuring text typing behavior for UI tests including delay, clearing, and sensitive text masking.
// Source: https://github.com/selenide/selenide | License: MIT | Copyright [2011-2025] [Andrei Solntsev & Selenide committers]
// Provided via justclaw.it.com; keep this notice with the code.
package com.codeborne.selenide;
import java.time.Duration;
import static com.codeborne.selenide.ValueMasker.mask;
public record TypeOptions(
CharSequence textToType,
CharSequence displayText,
Duration timeDelayWhileTyping,
boolean shouldClearFieldBeforeTyping
) {
private static final Duration DEFAULT_DELAY_WHILE_TYPING = Duration.ofMillis(200);
public static TypeOptions text(CharSequence textToType) {
return new TypeOptions(textToType, textToType, DEFAULT_DELAY_WHILE_TYPING, true);
}
public TypeOptions withDelay(Duration timeDelayWhileTyping) {
return new TypeOptions(textT
... (truncated -- full source via MCP)