- 博客(24)
- 收藏
- 关注
原创 pytest+appium的driver.findElementById.click不好使
原codeos.system("adb shell input tap 985 2184 && adb shell sleep 0.5")driver.find_element_by_xpath("//*[@text='设置']").click()现code TouchAction(driver).press(x=985, y=2156).release().perform() # 不能先用下边这句点击,,不然就点击不到,很扯淡 # os.syst..
2021-07-29 14:57:09
482
原创 jenkins 执行批处理脚本总是失败
mac 电脑,要想执行像Windows 一样的批处理的话,需要选择这个execute shell就可以构建成功了并且也可以执行成功
2021-07-21 15:07:26
331
原创 appium 的tap定位不好使
from appium.webdriver.common.touch_action import TouchAction TouchAction(driver).press(x=700, y=2250).release().perform()不好使就别纠结了,换一种方式,哈哈哈用这个就行了,,一样的功能,这个却可以点,另外,需要加上time.sleep(2),延时,等页面加载出来,再触发点击事件...
2021-06-30 14:23:22
981
4
原创 python+selenium+appium的安卓坑
报错:WebDriverException: Message: Parameters were incorrect. We wanted {"required":["desiredCapabilities"],"optional":["requiredCapabilities","sessionId","id"]} and you sent ["capabilities","desiredCapabilities"]网上都说是selenium 版本的问题,,但是好像无关呢,,,我的seleniu
2021-06-21 17:48:13
449
原创 python2.7安装selenium以及报错webdriver
1.导入selenium第一种方式:第二种方式:(安装的就是最新版的selenium)2.如果webdriver报错Could not find a version that satisfies the requirement webdrivera.可能是下面的情况祝大家好运!
2021-03-10 11:09:05
422
原创 nmon在Linux上的安装
nmon在Linux上的安装一.下载nmon的压缩包1.查看Linux系统的版本2.通过官网下载3.开始安装4.遇到问题5.正常启动一.下载nmon的压缩包1.查看Linux系统的版本uname -a2.通过官网下载http://nmon.sourceforge.net/pmwiki.php?n=Site.Download点击进行下载注意:本人是用mac的safari浏览器下载的,下载后是图片中这样的;把这个包在mac中解压后,放到Linux中你想要放的位置上解压后的东西如下3.
2021-03-03 15:14:46
375
原创 测试-jmeter连接数据库时报错Cannot create PoolableConnectionFactory (Unknown initial
1.添加的mysql-connector-java.jar 的版本必须大于当前mysql数据库中的版本注:查看数据库中的版本:select version() from dual2.将你的jar包倒入到jmeter 的/lib/ext下3.重启jmeter
2020-09-01 16:42:47
880
原创 Mac端的idea/eclipse连接本机linux的redis报错connection refuse连接拒绝的解决方案
redis的版本在3.2以上的请继续阅读,3.2以下的应该更换版本了,他们的配置文件已经不一样了,我的redis的版本是5.0.52.连接拒绝的情况<1>redis.conf 文件改一下(1)yes代表让Redis 开启后台进程,除非手动kill这个Redis ,否则redi s不会退出daemonize yes(2)no代表外部网络可以直接访问redis或者你...
2020-05-03 10:37:18
811
原创 linux卸载redis
卸载linux中的redis1.cd /usr/local/binrm -f /usr/local/bin/redis*删掉之前redis解压来的文件
2020-05-02 17:37:59
997
原创 centos6的防火墙开启某个端口
1.修改文件中,你需要添加的端口号vi /etc/sysconfig/iptables2.重启/etc/init.d/iptables restart3.报错Error occurred at line: 13Try `iptables-restore -h' or 'iptables-restore --help' for more information.4.报错后-&g...
2020-05-02 13:43:04
832
1
原创 linux安装gcc以及报错Couldn't resolve host 'mirrorlist.centos.org
安装gccyum -y install gcc automake autoconf libtool make安装的时候报错报错Couldn’t resolve host 'mirrorlist.centos.org目前知道的是两种可能性1.你的Linux没有连接外网2.2.1执行第一句,把第二,三句加进去vim /etc/resolv.confnameserver 8.8.8....
2020-04-24 17:29:06
708
原创 mac通过自带终端远程连接Linux服务器
1.先进入终端的root模式 sudo -i2.连接你的linux1)如果你不知道你自己ip地址,请在Linux上输入ip addr2)192.168.1.14是我的Linux的ip地址, ssh root@192.168.1.143.连接之后会有个提示输入yes就可以了The authenticity of host '192.168.1.14 (192.168.1.1...
2020-04-15 15:40:54
1995
原创 Linux安装docker和tomcat的步骤
1.首先在linux 上安装docker1)先检查virtualbox 的版本(要求在3.10以上)uname ‐r2)在linux 上安装dockeryum install docker后来他有问你两次 y/n. 我输入了y3)查看你的docker版本,如果出现你的docker 版本,就是安装成功了docker ‐v2.安装docker后,启动docker...
2020-04-14 17:04:20
461
原创 Mac不能为虚拟电脑打开一个新任务
在mac系统下,运行VirtualBox 里面的名字叫为atguigu 的linux虚拟机报错,不能为虚拟电脑打开一个新任务解决办法:尝试关掉这两个选项,你可能就可以启动了,不知道为什么,我的就是这么好的还有一个可能的问题,你这里是不是都选上了,用有线的朋友是不选wireless的...
2020-04-13 19:08:36
4225
原创 Mac给docker 19.03.8添加镜像
如果未安装docker,请参考链接https://www.runoob.com/docker/macos-docker-install.html我下载的是stable 版本的,傻瓜式安装以下操作都是在终端中进行1.查看你的docker版本是否和我的一致docker --version2.更改镜像位置点击docker 的preference{ "experimental": ...
2020-04-13 16:46:06
1690
原创 Java更改浏览器上方的小图标以及更改配置文件的位置
html的head标签里面写<link rel="icon" href="image/tip.png" sizes="16x16" type="image/png">照片的位置在 resources/static/image下面可以通过在application.properties 里面写spring.resources.static-locations = clas...
2020-04-13 16:03:39
494
原创 Mac下指定打印日志的位置
在application.properties 里面写默认新建的日志的名字是spring.loglogging.path=/Users/aaa/Downloads/spring/loglogging.file=/Users/aaa/Downloads/spring/log/springboot.log
2020-04-13 10:22:35
1166
原创 springboot用thymeleaf把数据库中查询到的数据放到下拉框中
前台:<select id="rcode" name="rcode" class="comment" required lay-verify="required"> <span th:each="lm:${session.risks}"> <option th:text="${lm.riskcode}" th:selected="1==1" > ...
2020-04-09 13:38:12
1369
1
原创 springboot在后台为前台的p标签赋值
后台public String toSubmit2( Map<String, Object> mapinfo ) { map.put("aa","用户名错误");前台<p th:text="${aa}" th:if="${not#strings.isEmpty(aa)}"></p>如有错误请指正,辛苦????...
2020-04-09 11:33:40
364
原创 SpringCloud的consumer给provider传值
consumer ‘ codeprivate static final String REST_URL_PREFIX = "http://microcloud-lmanage"; //对应的你要去provider的名字 @Autowired private RestTemplate restTemplate; @RequestMapping(value = "/tomlogin")...
2020-04-08 18:03:07
490
原创 spring.application.name和eureka.instance.appname和eureka.instance.instance-id的差别
2020-04-06 14:52:27
1242
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅