I'm currently working on automating a UAT for a program my company's working on. I did all the usual stuff like recording, clicking on relevant buttons and all, until I encounter a drop down menu.
The problem is that when selecting an item from the drop down, the action couldn't be recorded. After a while, I came to the solution of manually inserting the commands to choose the selected item from the drop down.
There is a small problem. While browsing the HTML code using the Chrome's own Developer tool, the class related to the drop down shows this:
[class="select2-offscreen" name="reference_type"]
But when I directly check the page source code, it shows this:
[select class="form-control" required="" id="reference_type" name="reference_type"]
The error shown in the log when I was testing the script wrote:
[[error] Specified element is not a Select (has no options)]
I would like to know your take on this and help me find solutions to overcome this problem. If you have anymore questions or want more info, do ask.
Thanks.