Explore Courses Blog Tutorials Interview Questions
0 votes
in RPA by (5.3k points)
reshown by

I am trying to input data into a dynamically generated text box, but i get the following error:

Cannot find the UI element corresponding to this selector: <webctrl id='dp1545483054838' tag='INPUT' />

Steps to reproduce the issue:

  1. Go to
  2. Rename gender to date
  3. Click on on Gender under Type and type date in the search and then select Date

This will display two fields from date and to date (dynamically generated). I want change the date in these fields.

1 Answer

0 votes
by (9.5k points)

 hey, i tried working on it , to provide you with a better answer

Ui Explorer generates the following by default

<html app='chrome.exe' title='Mockaroo - Random Data Generator and API Mocking Tool | JSON / C*' /> <webctrl id='dp1546757265980' tag='INPUT' />

  1. Check that you are in scope of your selector if you are wanting it to be relative or ensure you are correctly defining a valid hierarchy if using an absolute.

  2. Determine a good hierarchy and a few attributes to use that would allow you to specify the field you want while not using attributes or values that are too ambiguous or would never be the same twice

The first thing that I noticed for the start and end date fields is they have a title attribute start of range and end of range values respectively. I think this would be a good start, for myself I ended up including a few more attributes.

<webctrl tag='INPUT' aaname='start of range' name='*min_date*' parentclass='options' parentid='fields' />

Thinking about this a step further, due to the nature of the form you could have multiple option fields that are of the type Date, so I anchored my selector to the date name field to ensure I was targeting the correct options.

While adding the anchor I noticed that after changing the name field from "gender" to "date" that the HTML code did not update the value to reflect this so it still had the original content

<input placeholder="enter name..." class="column-name form-control" spellcheck="false" type="text" value="gender" name="schema[columns_attributes][4][name]" id="schema_columns_attributes_4_name" uipath_custom_id="1">

next time, I selected/anchored the Name field,

I added a Find Element activity and created an output Ui Element variable to pass to the other activities.

Browse Categories