PasteWebValue |
Top Previous Next |
×V4.1Ø
Syntax - PasteWebValue <Value> <Element Identifier> Where: <Value> is a literal string or a variable that contains a string value. <Element Identifier> is a valid web element identifier as described in Identifying an Element.
Description: This command is used to paste <Value> into the element defined by <Element ID> . Unlike the TypeWebValue command, the PasteWebValue command pastes the entire value at once rather than typing the characters one at a time. This method allows faster input, but may not work with all web elements in all systems. 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 whatever element needs activation. The TypeWebValue command should work in such instances.
Soarian SmartUI: Yes Chrome: Yes
Note: In some cases, you may find that Soarian 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 Soarian 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 expects a specific format, such as a date. 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 continue with your process.
Sample 1: The following statement will paste the literal string 7 as text into a textfield. PasteWebValue "7" "Dialog=Main:wellFrame:Textfield,ID=ctlIdentifierInputBoxText__,INDEX=1"
Sample 2: The following statement will paste the contents of the variable PatientName as text into a textfield. PasteWebValue PatientName "Dialog=Main:wellFrame:Textfield,ID=ctlIdentifierInputBoxText__,INDEX=1"
See Also:
|