今天这个功能完全是由于自己在实现自己需求的过程中走岔了。不过还是记录一下 使用的是selenium库 首先引入库 from selenium import webdriver from selenium.webdriver.common.keys import Keys(一个驱动浏览器,一个用于输入 ...
分类:
编程语言 时间:
2020-04-25 23:32:51
阅读次数:
103
源代码: config.properties文件放在resources文件夹下: ...
分类:
编程语言 时间:
2020-04-25 23:20:50
阅读次数:
81
1、问题描述: 在使用selenium模块时,遇到问题:selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https:// ...
分类:
Web程序 时间:
2020-04-25 11:00:25
阅读次数:
148
我是海大顶瓜瓜 1、从前面查找最长公共前缀 Input: ["flower","flow","flight"]Output: "fl"Example 2: Input: ["dog","racecar","car"]Output: ""Explanation: There is no common ...
分类:
编程语言 时间:
2020-04-25 01:07:27
阅读次数:
75
https://www.jianshu.com/p/dc616814ce98 一、四个测试用例 准备如下 import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.common.extension.Adaptive; import c ...
分类:
其他好文 时间:
2020-04-25 00:48:13
阅读次数:
71
整理到一个工具类里面,用到了spring和alibaba.fastjson package common; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; import o ...
分类:
编程语言 时间:
2020-04-23 21:13:11
阅读次数:
65
添加日志 添加日志同样是在Common目录下,创建一个存放日志的目录Logs和日志类MyLogger,实现的方式并不复杂,不再赘述,只是添加下源码 修改测试请求类TestMyRequest,加入日志并执行,可以看到一些效果 生成测试报告 在项目目录下新建一个存放报告的目录HTMLReposts,再创 ...
分类:
其他好文 时间:
2020-04-23 19:30:10
阅读次数:
67
题目描述 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The ...
分类:
其他好文 时间:
2020-04-23 00:51:39
阅读次数:
73
本文参考 今天在Java Language Specification上偶然看到一条关于枚举的语法特点说明 An enum declaration is implicitly final unless it contains at least one enum constant that has a... ...
分类:
编程语言 时间:
2020-04-22 16:57:35
阅读次数:
86
结构 starts.py # Author:Winter Liu is coming! # 启动文件 import os import sys import json BASE_PATH = os.path.dirname(os.path.dirname(__file__)) sys.path.ap ...
分类:
其他好文 时间:
2020-04-22 16:46:21
阅读次数:
80