We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddeed7b commit fea3706Copy full SHA for fea3706
src/tools/input.ts
@@ -160,11 +160,10 @@ async function fillFormElement(
160
await selectOption(handle, aXNode, value);
161
} else {
162
// Increase timeout for longer input values.
163
- const textLengthIn1kChars = Math.floor(value.length / 1_000);
164
- const timeoutPer1kChars = 5_000; // ms
+ const timeoutPerChar = 10; // ms
165
const fillTimeout =
166
context.getSelectedPage().getDefaultTimeout() +
167
- textLengthIn1kChars * timeoutPer1kChars;
+ value.length * timeoutPerChar;
168
await handle.asLocator().setTimeout(fillTimeout).fill(value);
169
}
170
} finally {
0 commit comments