Reputation: 23798
I'm using WatiN to fill in a form on a website. However, the text boxes' autocomplete feature only fire if I actually take the mouse and click on a text box. I've tried using Select()
, Click()
and TypeText()
and in all of those cases, the autocomplete on the form doesn't fire.
Has anyone encountered this? Any way I can go around it? I assume that the autocomplete functionality gets triggered by JavaScript, but if I could just emulate a 'proper' mouse move and click, that would be enough for me.
Upvotes: 0
Views: 119
Reputation: 1962
Moving the mouse is not Watin specific, you will need to use Windows API calls for that. But the autocomplete feature is a browser implementation, not a javascript one so that varies on each web browser. If you still want to clik on it using Windows API will do it. Be aware that moving the mouse is not as easy as it sounds as you have to account for were the page is EXACTLY at (it varies on different resolutions, if the page is in a small windows, etc., there are APIs to found the exact location too)
Upvotes: 1