Trouble Setting Dropdown Value using Web Automation
· One min read
Trouble setting the dropdown value for an Angular mat-select element
When trying to set the dropdown field value of a mat-select element from Angular Framework using Set Dropdown Field Value activity under the Web Automation category, it fails. This issue is because of the lack of a JavaScript-based method for setting the value in Angular.
Here is the example of the mat-select element used in one of the web pages:
To address this issue, you can follow these steps as a workaround:
-
Use Click Element activity to click dropdown. It will display a pop-up with available options.
-
Again, use Click Element activity to click on desired options from the pop-up.