此处以谷歌浏览器为例 [问题1]缺少chrome驱动,webdriver调用谷歌浏览器的时候就报错了,如下图: [原因分析]缺少谷歌驱动程序 [解决办法] 1.查看本地安装chrome浏览器版本 2.下载对应驱动,具体的驱动版本与浏览器版本对应信息以及下载地址,可参考:https://blog.csdn.net/huilan_same/article/details/51896672 3.将下载的驱动文件chromedriver.exe,放置你安装的python目录下的Scripts文件夹中,如…
使用python的suds包调用webservice服务接口,报错:AttributeError: 'Document' object has no attribute 'set' 调用服务接口代码: #coding=utf-8 from suds.client import Client client = Client('http://port.patentstar.cn/bns/PtDataSvc.asmx?wsdl') print client pt = client.factory.cr…
环境 Centos 7(其他Centos或者RHEL一样) 问题 在执行 pip install MySQL-python 时报错如: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-P6IAnP/mysql-python/ 解决方法 缺少mysql-devel yum install -y mysql-devel 如果不行请执行以下安装更多 yum install -y pyt…
国内镜像源: 阿里云:https://mirrors.aliyun.com/pypi/simple/ 清华:https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣:https://pypi.douban.com/simple/ 示例:pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple 如…
问题描述:下载文件时, 请求带中文的URL的资源时,比如:http://s237.sznews.com/pic/2010/11/23/e4fa5794926548ac953a8a525a23b6f2/竞赛资讯.png(可以在浏览器查看),用它来直接初始化NSURL,就会报错 解决方法:就是用UTF-8转义 NSString *url = [NSString stringWithFormat:@"http://google.cn/...",...]; url = [url stringB…
[错误一:]maven 编译级别过低 [解决办法:] 使用 maven-compiler-plugin 将 maven 编译级别改为 jdk1.6 以上: <!-- java编译插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2<…
Python+selenium自动化测试中Windows窗口跳转方法 #第一种方法 #获得当前窗口 nowhandle=driver.current_window_handle #打开弹窗 driver.find_element_by_name("xxx").click() #获得所有窗口 allhandles=driver.window_handles for handle in allhandles: #比较当前窗口是不是原先的窗口 if handle!=nowhandle: #获…
MyEclipse Server view报错解决方法 方法/步骤     启动MyEclipse,弹出一个框,报错. -------------------------------------------------------------------------------- Errors occurred during the build. Errors running builder 'DeploymentBuilder' on project 'SeNT-DL'. java.lang.…
Loadrunner参数化逗号报错解决方法     介绍Loadrunner参数化时,参数中包含有逗号时出错的解决方法. 在Loadrunner进行参数化时,参数中如果含有逗号,编辑保存后会报错: 此时对英文逗号进行转义即可正常进行参数化: 参数化方法即添加双引号进行转义: 如123456abc","即表示参数123456abc,  …
AS下如何生成自定义的.jks签名文件, 以及如何生成数字签名 链接:http://www.cnblogs.com/smyhvae/p/4456420.html 链接:http://blog.csdn.net/sunbinkang/article/details/74990292 Android support 26.0.0-alpha1 产生的问题 重点在这里,强制使用相同版本的库:在moudle 的build.gradle中 添加上,版本自选. configurations.all { re…