开发者

Getting Error Code When Trying to Run Javascript via Python Wrapper

I am trying to click a link via Javascript (wrapped up in Python)

开发者_运维百科

The item I am trying to click is this:

<a href="/node/1742957/nodequeue">Nodequeue</a>

And my coworker was suggesting I use this:

br.runjs("""jQuery(\"a:contains(\'Nodequeue\')\").trigger(\"click\");""")

Which runs the following Javascript code:

jQuery("a:contains('Nodequeue')").trigger("click");

But which then gives me the following error, over and over and over again:

Javascript console (:1): Unsafe JavaScript attempt to access frame with URL http://cdn.nprove.com/cpma/p/1/2/e/b/12ebf3bc368ry3ra.html?npuid=1310010225&rurl=&id=cpma-2n7eypbvio581300288437193&null=&r=366424962878227 from frame with URL http://www.benzinga.com/analyst-ratings/analyst-color/11/07/1742957/the-beef-stops-here. Domains, protocols and ports must match.

Any idea what's going on? I am just trying to navigate to the page indicated in the link listed above.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜