我想用selenium进入IE里的公司系统自动取数,配置完IEDriver和IE安全选项以后,运行报错:
WebDriverException: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: Cache Access Denied</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD>
<BODY>
<H1>ERROR</H1>
<H2>Cache Access Denied</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://127.0.0.1:56235/session">http://127.0.0.1:56235/session</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Cache Access Denied.
</STRONG>
</UL>
</P>
<P>Sorry, you are not currently allowed to request:
<PRE> http://127.0.0.1:56235/session</PRE>
from this cache until you have authenticated yourself.
</P>
<P>
You need to use Netscape version 2.0 or greater, or Microsoft Internet
Explorer 3.0, or an HTTP/1.1 compliant browser for this to work. Please
contact the <A HREF="mailto:root">cache administrator</a> if you have
difficulties authenticating yourself
</P>
我在想是不是公司内网要配置代理,但是试了一圈没找到配置IE代理的方法,于是又尝试chrome打开网址再取数,发现IE页面无法正常显示,有些按钮不能点击。。。。
于是我下了个IE tab(chrome插件,用来正常显示IE)搞了带插件启动的chrome,结果更加悲催的发现,插件页面中的元素和原来完全不一样了,都是IE tab的元素。。。。要气死了
所以现在要么在带插件chrome里获取正确的元素,要么解决IE的代理问题。。。求问各位大佬怎么办!!!!TAT