I have a Rails app that has a field that is a select2, with dynamic search via AJAX loading results. I can’t seem to get RPA to record the actions I need, nor have I found a way to manually set the selection of one of the results in the list. I can get it to type the string in, see the results coming back, buck can’t manage to make it select one correctly. Has anyone hit this?
Post url of page and images please
There are more ways to do this
Ui vision can not record every action
It’s not publicly available, but I’ll show the screen shots:
- the empty field
- after typing in “prednisone” and the Ajax call happening
- after I select the one I want, manually.
I can get RPA to type in the search criteria, the Ajax happens, but then I just can’t figure out how to get it to grab the item from the list.
No problem is easy to solve this select
use Xtype {KEY_DOWN} and {KEY_ENTER} to choice value in select
Other possibile solution is using advanced xpath axes but need expert and more time
I’ve got that in my code, it doesn’t work. I’ll keep flailing.
It turned out the one second delay I had waiting on the Ajax wasn’t enough. I bumped that up to 3 seconds, and the XType of down and enter works.
Thanks!
Click solution button in my post with solution please, thanks