Skip to end of metadata
Go to start of metadata

The purpose of these two commands is the same – to enter text onto a web page. If you were to run the two commands, you would immediately see the difference. PasteWebValue pastes an entire value into a web element whereas TypeWebValue enters the characters of the text one letter at a time.

So why would you want EMUE to type letters in one at a time if pasting them in is so much faster?

There are some cases where a button or another element is not activated until there is a click or keystrokes detected in another element. For example, on a search screen, some search criteria may need to be entered before the Search button will be enabled. In such cases, it is likely that the PasteWebValue command will not activate the search button or any element that needs activation. In the example below, once the record completes, we want to click the "Clear Search" button. When we paste a value into the field, the button remains disabled.

The TypeWebValue command should work in such instances. 


In some cases, you may find that the webpage does not recognize text that has been entered using either PasteWebValue or TypeWebValue. In these cases, the text you entered is on the page, but the webpage will not allow you to continue – as if you had not entered any text. This is common in some date fields or other fields that are “masked.” A masked field usually expects a specific format.  Verify input data is formatted as expected, date fields may require a fully formulated date with forward slashes, “January 2nd, 2018” or “01022018” = “01/02/2018”.

Example of a masked field:

In the case where you cannot proceed after PasteWebValue or TypeWebValue, you may need to use the FireWebEvent command. This command simulates the java that runs behind the scenes. Simply run FireWebEvent with the OnBlur event using the same element that you pasted a value into and you should be able to go on.

PasteWebValue Date_Start TextBoxIdentifierVariable
FireWebEvent "OnBlur" TextBoxIdentifierVariable