Posted: 15 Jan 2019 12:15 EST Last activity: 1 Feb 2019 6:44 EST
Interogating combo box
We are developing an RPA on an existing business process. we have a combo box to interrogate and select / choose a specific value but we couldn't succeed.
when we got this control from web, it was created as txt box, we tried to set its value and text but didn't work..
we tried to get the SELECT control using 'web control' >> 'live web controls' . then we tried some control methods to set its value as needed like:
- set_innertext etc etc BUT .... nothing was happening to our combo box..
- File controlmethods >> screenshot of control methods used to text combo box value
- File designBlock >> shows specific design blocks used to set combo box values
- File htmlCode >> html structure of the combo box we are trying to interogate the set its value as needed..
May i ask if someone has an idea to how solve this one?
NOTE::: i already interrogated combo boxes and worked fine.. this one is a bit strange that doesn't go well...
In looking at the dom HTML Code I see class="ng-pristine ng-valid default-option"
The classes starting with (ng) "ng-[something]" indicate to me the site is using the "Angular model".
Option 1) SR: Submit an SR/service request to Pega for a recommendation, as Pega is aware of the difficulty of interrogation with angular.
Option 2) Try: Set Focus on the comboBox and try using SendKeys (method is at the IEFrame level) until a better understanding of angular model is available. In some cases you may need to use sendkeys along with trigger of an event.
NOTE: SendKeys would not be the most preferred method