开发者

How to hover over some link and wait for popup to appear. (WatiN)

开发者 https://www.devze.com 2023-04-05 23:29 出处:网络
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

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

精彩评论

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