I've been in the situation where I had to automate some entries to Forms. Selenium is an excellent tool but it has its flows. One of them is ComboBoxes, this also depends on how the ComboBox is implemented inside the HTML. The problem is that even though the text is written in the ComboBox (where we choose the item that we want), when you change the focus to another component then the text is erased. This problem seems to be related with how the COM is created.
SolutionThe solution is to combine Win32 API calls and Selenium. We want to emulate a user entering data to the Form.
First we need to link the Win32 API calls with our class.
View the Original article
Нема коментара:
Постави коментар