java 安装jmeter时出现的环境变量问题
1.已经安装过java7,并配置过环境变量。后面更新java8出现的情况。
转自(http://blog.csdn.net/aliasp/article/details/43493909)原博客地址

2.启动jmeter.bat时,cmd窗口弹出警告 'Could not open/create prefs root node Software\JavaSoft\Prefs at root'

3.安装完python之后写的demo函数无法调用,报如下错误

将geckodriver.exe解压后放到python所在的目录,如果要调用Chrome,也要将ChromeDriver.exe复制到python的目录下。
在Firefox浏览器下启动selenium-ide,先是报了

Could not connect to Selenium Server. Have you started the Selenium Server yet?
找到之前下载的selenium-server-standalone-3.4.0.jar后,到文件所在位置启动cmd,使用java命令
java -jar selenium-server-standalone-3.4.0.jar
继续运行后,浏览器弹窗

安装45.0.2版本的火狐浏览器,并把python目录下的firefox.exe删除
4.今天一上班发现py无法启动,报错如下:

selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities。
卸载旧版本(45.2)的firefox浏览器,安装至最新版本(54.0)可以启动
5.python单行注释#,多行注释可使用三个单/双引号去包裹需要注释的内容'''注释内容'''或"""注释内容"""
6.很多文章里面都建议firefox的版本不宜过高,可是版本过低会出现上述的问题5,版本过高会导致selenium IDE只能录制,不能回放,这让人很纠结。
7.python中,find_element_by_partial_link_text()里面的字符串使用情况:
find_element_by_partial_link_text("关于蓝天卫士系统") ✔
find_element_by_partial_link_text("关于")✔
find_element_by_partial_link_text("关天")✖
字符串若有两个或两个以上需连续匹配,否则无法找到