当在编译打包文件时,有时候html文件需要编译进二进制 , 可以使用这个包 github.com/gobuffalo/packr 当使用了go.mod的话 , 直接在代码中引入使用就行 , 运行或者编译时会自动把依赖下载下来 box := packr.NewBox("../static") cont ...
分类:
Web程序 时间:
2020-05-19 22:52:42
阅读次数:
96
如果你还想从头学起Appium,可以看看这个系列的文章哦! https://www.cnblogs.com/poloyy/category/1693896.html 前言 上一篇文章介绍了另一块控件定位工具:UIAutomatorviewer 这一篇,我们来介绍另一款工具:Appium Deskto ...
分类:
移动开发 时间:
2020-05-19 21:01:34
阅读次数:
104
1 # coding=utf-8 2 from selenium import webdriver 3 from selenium.webdriver.common.action_chains import ActionChains 4 import time 5 6 driver = webdri ...
分类:
编程语言 时间:
2020-05-19 20:53:12
阅读次数:
101
jQuery 为什么要用jquery? 写起来简单,省事,开发效率高,兼容性好什么是jQuery? jQuery是一个兼容多浏览器的JavaScript库(类似python里面的模块) jQuery的宗旨 write less do more 让你用更少的代码完成更多的事情 jQuery介绍 压缩的 ...
分类:
Web程序 时间:
2020-05-19 18:48:36
阅读次数:
73
#磁盘空间 df -h 显示已经挂载的分区列表 du -sh [file] 估算当前使用磁盘空间 du -sk * | sort -rn 以容量大小递减排序 文件搜索 find find [file_path] -name test 从指定路径下开始找 名称 为test 文件和目录 find / - ...
分类:
系统相关 时间:
2020-05-19 18:01:27
阅读次数:
59
1、针对UI自动化测试,最基础的内容是:元素定位。只有定位到了元素后,才能对其进行相应的操作 2、那么我们常见的几种定位方式有哪些呢 1. by id JS写法:document.getElementById("serviceCode"); selenium写法:driver.find_elemen ...
分类:
其他好文 时间:
2020-05-19 16:17:32
阅读次数:
49
使用Wireshark抓包的时候,报出如下错误: The capture session could not be initiated on interface '\Device\NPF_Loopback' (Error opening adapter: The system cannot find ...
分类:
其他好文 时间:
2020-05-19 14:50:22
阅读次数:
290
在我们进行测试的过程中,经常会遇到点开超链接打开另一个新窗口的情况,即 target="_blank",这种情况下,如果要在新窗口进行操作,需要将焦点移到新窗口上,本文将介绍这种情况的处理 切换窗口的方法: 1.获取当前页面窗口的句柄 current_window_handle 2.获取所有页面窗口 ...
分类:
其他好文 时间:
2020-05-19 13:04:20
阅读次数:
72
function P() {} var p1 = new P(); P.prototype.age = 18; P.prototype = { constructor: P, name: 'zz' } P.prototype.num = 20; P.prototype.age = 22; conso ...
分类:
其他好文 时间:
2020-05-19 10:29:51
阅读次数:
55
Description Given an integer array , find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Examp ...
分类:
其他好文 时间:
2020-05-18 22:47:34
阅读次数:
65