摘要: 1、Selenium提供哪几种等待方式,各有什么优缺点。答 :a、线程等待 等待时间固定 优点:无视任何条件必定会执行 缺点:页面实际响应时间不确定,设置太长影响执行效率,设置太短可能无法获得需要的结果b、隐式等待 优点:一次设置 全局可用,并且只要能找到元素就会继续执行不影响效率缺点:等待条件单一 阅读全文
posted @ 2021-03-05 11:58 fiskeryang 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 使用过selenium的朋友相信都了解selenium给用户提供了几种不同的元素定位方式。 今天在这里我们不讨论几种定位方式的优劣,只针对性的讨论xpath的使用方法与一些技巧。本人一直是坚定的xpath党,定位方式非常灵活,而且运用熟练了之后,还可以对UI自动化的PO模式进行一定的扩展。 绝对路径 阅读全文
posted @ 2020-08-24 10:38 fiskeryang 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 刚接触Selenium隐式等待与显示等待时有一些困惑,这两种方式到底有什么优劣,我们应该在何种情况下选择哪种等待方式?下面我们来分析一下这它们各有什么特点。 一般来说,做UI自动化测试时可能会用到三种等待方式 :1、Thread.sleep 线程等待2、selenium提供的隐式等待3、seleni 阅读全文
posted @ 2020-08-17 10:31 fiskeryang 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 暂时记录三种工作中用到的数据库的连接方式,以后有需要再添加 1、Oracle & Mysql 驱动 <!-- oracle --><dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>1 阅读全文
posted @ 2018-05-08 22:35 fiskeryang 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: --创建跨库连接 create public database link 【连接别名】 connect to 【账号】 identified by 【密码】 using '【数据库URL】'; --删除连接 drop public database link 【连接别名】 ; --使用连接 sele 阅读全文
posted @ 2018-05-08 21:38 fiskeryang 阅读(264) 评论(0) 推荐(0) 编辑
摘要: using System.Text;using System.Net;using System.IO;using System.Text.RegularExpressions;using System.Security.Cryptography.X509Certificates;using Syst 阅读全文
posted @ 2014-12-26 15:27 fiskeryang 阅读(2285) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u 阅读全文
posted @ 2014-12-25 16:54 fiskeryang 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1.设置WinForm窗体属性ShowInTaskbar=false this.ShowInTaskbar = false;2.加NotifyIcon控件notifyIcon1,为控件notifyIcon1的属性Icon添加一个icon图标。3.添加窗体最小化事件(首先需要添加事件引用):priva 阅读全文
posted @ 2014-12-25 16:53 fiskeryang 阅读(737) 评论(0) 推荐(2) 编辑
摘要: //添加两个com组件引用 //Microsoft ADO Ext. 2.8 for DDL and Security //Microsoft ActiveX Data Objects 2.8 Library using System;using System.Collections.Generic 阅读全文
posted @ 2014-12-25 16:50 fiskeryang 阅读(12171) 评论(2) 推荐(0) 编辑