TypeOption
TypeOption method controls the typing speed when entering text into a field. It allows you to set how fast or slow the text is written.
Parameters
- delayInMilliseconds -
Int= Sets the amount of time (in milliseconds) to pause before continuing to the next action.
RpScript
How to use
Pupet.OpenBrowser({ headless: false, browser: "Chrome" });
var pageresponse = Pupet.Visit("https://erametricras.com/");
var WaitOptionForVisible = Pupet.WaitOptionForVisible(true, 2000); Pupet.ClickWithWait(pageresponse.page, "div.tdb_header_search.tdi_328.tdb-header-search-trigger-enabled > div.tdb-block-inner.td-fix-index > a.tdb-head-search-btn.dropdown-toggle > span.tdb-search-icon.tdb-search-icon-svg > svg:nth-child(1)", null, WaitOptionForVisible, false);
var typeOption = Pupet.TypeOption(200);
Pupet.TypeText(pageresponse.page, "div.tdb-drop-down-search.tdb-drop-down-search-open > div.tdb-drop-down-search-inner > form.tdb-search-form > div.tdb-search-form-inner > input.tdb-head-search-form-input", "test manager", null, typeOption);
Pupet.CloseBrowser();
Extension

