Skip to main content

TypeText

This method performs the typing operation at the placespecified by the selector.

Parameters

  • page (visitResponse .page): The page object returned by Pupet.Visit.
  • selector - String : The CSS selector used to identify the element within the iframe. For example, #username could refer to a textbox element's ID.
  • Parent - IElementHandle
  • Text - String : It is a string that will be typed into the field.
  • TypeOption : It determines typing speed.

RpScript​

How to use

Pupet.OpenBrowser({ headless: false, browser: "Chrome" });
var visitResponse = Pupet.Visit("https://www.iwc.com/us/en/home.html");
Wait(2);
var WaitOptionForVisible = Pupet.WaitOptionForVisible(true, 2000);
Pupet.ClickWithWait(visitResponse .page, "span.iwc-country-details.iwc-current-country.iwc-btn-secondary-light", null, WaitOptionForVisible, true);
var TypeOption = Pupet.TypeOption(200);
Pupet.TypeText(visitResponse .page, visitResponse.page, "[name="
commit "]", "labelText", null, TypeOption);
Pupet.CloseBrowser();


Extension​