There is a site, it has 2 combos, you need to focus on the 1st combobox and select an element in it, then put the focus on the 2nd combobox and select an element in it. Here is the code
HtmlWindow frames = webBrowser1.Document.Window.Frames[0]; frames = webBrowser1.Document.Window.Frames[0]; var elements1 = frames.Document.GetElementsByTagName("select"); elements1[0].Focus(); SendKeys.Send("{DOWN}"); elements1[1].Focus(); As you can see, the elements inside the combo box I choose by imitating a key down on the keyboard. The result is that the selection takes place in the second box, it feels like it doesn’t have time to put the focus, as the key is pressed down. Can you please tell me how to fix this? Or maybe there is a more sensible way to select elements of a combo box, rather than simulating keystrokes. Thank you in advance!