Pega Robotics : Assigning values issue with Auto Populate Textbox in Pega screens


We are facing issues in one of the use cases for Pega Robotics Automation.

As part of the automation we are interrogating a textbox on the pega workflow site , which has auto populate feature enabled.

For the use case we need to set the value of the text box but because of this feature it is no accepting the value properly and giving back the error.

We tried many options as below :

· Wrote JavaScript method at document level to invoke the keys and enter the text.

· Tried raise event for the control. (onchange , onblur , keydown , keypress, select etc)

Below is the textbox tag from view source, where we don't see any specific event to trigger.

<input type='text' data-ctl='["AutoCompleteAG"]' autocomplete='off' autocorrect='off' autocapitalize='off' name='$PpyWorkPage$pLossDetailsList$l1$pCauseOfClaimDesc' id='CauseOfClaimDesc' data-skip-ac="yes" validationType='required'class="autocomplete_input ac_" value="" data-attributes='[ "EXPANDEDSubSectionBasicLossInfo46_CauseOfClaimDesc",0,0,{"LOB" : ".LOB","OE" : "Literal_"},"pyWorkPage.LossDetailsList(1)"]' />

Any suggestions around this issue?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

June 7, 2018 - 2:06am

Hi Veneela,

In a similar case, I found it easier to use Pega's own function call to set property rather than fiddling with the events [for complicated scenarios such as this]. Below is the function call. It also triggers appropriate events [as necessary].

pega.u.d.setProperty('<Property reference>', '<Value>');

Here is an example automation procedure to set value to a dropdown [which in-turn triggers pega configured onchange of that dropdown]

StringUtils toolbox component can be used to construct the script call statement and execute it using ExecuteScript method of the page object. Try and let us know how it goes..

June 7, 2018 - 9:52am

Hi Tarun,

   Thanks for responding. But in my case, the auto populate control is getting identified as text box rather than combo or list box.

Any idea with textbox control?

- Veneela

June 7, 2018 - 10:17am

Well its the same function call for text input box as well. Its just that for my example I used a dropdown.