最近我的Chrome浏览器更新为Version 57.0.2987.133 (64-bit)
。因此,我现有的量角器测试不适用于当前版本的chrome。
错误消息是
失败:未知错误:无法使用'in'运算符在false中搜索“String” (会议信息:chrome = 58.0.3029.96) (驱动程序信息:chromedriver = 2.29.461591(62ebf098771772160f391d75e589dc567915b233),platform = Windows NT 6.3.9600 x86_64)(警告:服务器未提供任何堆栈跟踪信息) 命令持续时间或超时:18毫秒 构建信息:版本:'3.4.0',修订版:'未知',时间:'未知' 系统信息:主机:'WIN-DA72NJNI5DP',ip:'172.16.230.61',os.name:'Windows Server 2012 R2',os.arch:'amd64',os.version:'6.3',java.version: '1.8.0_131' 驱动程序信息:org.openqa.selenium.chrome.ChromeDriver Capabilities [{applicationCacheEnabled = false,rotate = false,mobileEmulationEnabled = false,networkConnectionEnabled = false,chrome = {chromedriverVersion = 2.29.461591(62ebf098771772160f391d75e589dc567915b233),userDataDir = C:\ Users \ ADMINI~1 \ AppData \ Local \ Temp \ scoped_dir7512_11086} ,takesHeapSnapshot = true,pageLoadStrategy = normal,databaseEnabled = false,handlesAlerts = true,hasTouchScreen = false,version = 58.0.3029.96,platform = WIN8_1,browserConnectionEnabled = false,nativeEvents = true,acceptSslCerts = true,locationContextEnabled = true,webStorageEnabled = true ,browserName = chrome,takesScreenshot = true,javascriptEnabled = true,cssSelectorsEnabled = true,unexpectedAlertBehaviour =}]
即使我已将我的Chrome驱动程序版本更新为2.28,然后是2.29。但它不起作用。 以下是有关我当前测试环境的更多信息:
答案 0 :(得分:2)
您的Class EmployeeEXT {
private long employeeEXTId;
private long bonus;
private Employee emp; //Many-TO-ONE Relation
// setter and getter methods.
}
已过时。 Chrome版本56-58需要chromedriver
2.29。
确保您拥有最新的lat=range(1,11)
frequency=[]
p=[]
x=[]
t=[]
fig = plt.figure()
with open('output.xml', 'w') as output_file,open('jacobians.xml', "r") as input_file, open('extracted.xml', "r") as input_file1:
for j in lat:
l=8*j
i=l-6
a=0
v=94*j
u=v-92
for lines in itertools.islice(input_file1, u, v):
lines=np.array(lines.split())
p.append(float(lines[0]))
x.append(np.log(float((lines[0]))))
t.append(float(lines[1]))
for line in itertools.islice(input_file, i, l):
line=np.array(line.split()).astype(float)
#plotting
ax= fig.add_subplot(10,1,j)
ax.plot(p,line)
del x[:]
del p[:]
del t[:]
plt.show()
:
chromedriver
然后广告执行更新:
webdriver-manager
为我工作。
答案 1 :(得分:0)
尝试使用以下命令更新Chrome驱动程序
webdriver-manager update --versions.chrome = 2.28
webdriver-manager start --versions.chrome = 2.28
因为您使用的是不兼容的浏览器和驱动程序版本