I am trying to make my application click a link that is inside a page loaded in a web browser control but nothing seems to be happening. Clicking manually on the link works (it performs some javascript command to load an data using ajax). I cannot simply go to the URL since the HREF is "#"
So far I have tried these methods:
wb.Document.GetElementById("MyElement").InvokeMember("click")
wb.Document.GetElementById("MyElement").RaiseEvent("onmousedown")
wb.Document.GetElementById("MyElement").RaiseEvent("onclick")
Not sure if it will help, but:
wb.Document.GetElementById("MyElement").RaiseEvent("onmouseover")
Seems to partially simulate a mouseover on the link
Any other options I can try to simulate a mouse click?
Thanks!