开发者

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");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜