我试图通过Javascript(用Python包裹)点击链接
我想点击的项目是:
<a href="/node/1742957/nodequeue">Nodequeue</a>
我的同事建议我用这个:
br.runjs("""jQuery(\"a:contains(\'Nodequeue\')\").trigger(\"click\");""")
其中运行以下Javascript代码:
jQuery("a:contains('Nodequeue')").trigger("click");
但是,这会一次又一次地给我以下错误:
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.
知道发生了什么事吗?我只想尝试导航到上面链接中指示的页面。