How to hover over some link and wait for popup to appear. (WatiN)
I need to h开发者_如何学Pythonover over a link to make popup to appear. I used MouseEnter() function but it lasts just milliseconds and i need approx 3 seconds of hovering to make popup to appear. So how can i make my hovering last for 3 or 5 seconds? Thanks
Have you tried firing the onmouseover event? Something like:
browser.Link(Find.ByUrl("some_url")).FireEvent("onmouseover");
.
if that doesn't work, have you tried calling the Javascript method explicitly? Like:
browser.Link(Find.ByUrl("some_url")).Eval("javascript_method_call_code");
精彩评论