- 博客(24)
- 资源 (4)
- 收藏
- 关注
转载 python+selenium高亮显示正在操作的页面元素
转自:Selenium WebDrver3.0 自动化测试框架 实战指南from selenium import webdriverimport unittest,timedef highLightElement(driver,element): #封装好的高亮显示页面元素的方法 #使用JavaScript代码将传入的页面元素对象的背景颜色和边框颜色分别 #设置为...
2018-06-25 14:27:44
1513
1
转载 python+selenium自动给下载某个文件
转自:Selenium WebDrver3.0 自动化测试框架 实战指南#encoding=utf-8from selenium import webdriverimport unittest,timeclass TestDemo(unittest.TestCase): def setUp(self): #self.driver= webdriver.Firefox...
2018-06-23 12:22:23
2229
原创 ptyhon+selenium控制滚动条移动
1、使用js的 document.body.scrollTop# 移动滚动条jsBottm = "var q=document.body.scrollTop=100000"driver.execute_script(jsBottm);2、使用js的 window.scrollBydriver.execute_script("window.scrollBy(0,document.body.scr...
2018-06-10 11:10:08
836
转载 Jmeter 后置处理器(BeanShell PostProcessor)
转载自:https://www.cnblogs.com/licl11092/p/6862010.html1、新建JDBC Request,如下图所示:重要的参数说明:Variable Name:数据库连接池的名字,需要与JDBC Connection Configuration的Variable Name Bound Pool名字保持一致Query:填写的sql语句未尾不要加“;”Paramete...
2018-04-23 14:49:32
6077
转载 linux下出现nginx Failed to read PID from file /run/nginx.pid: Invalid argument
解决方法:mkdir -p /etc/systemd/system/nginx.service.d printf "[Service]\nExecStartPost=/bin/sleep 0.1\n" > /etc/systemd/system/nginx.service.d/override.conf 然后 systemctl daemon-reload systemctl restart...
2018-03-15 17:05:52
4455
原创 WPF GridControl 数据绑定
最近在做一个工具如下:根据电压、容值、公差去匹配 "K3规格型号”,如果不存在则将 “电压”、“容值”、“公差”字体颜色改为红色。当时遇到了这个问题,因为Column "功率"已经绑定了一个字段 “Power”,想要根据CellColor改变颜色,在cell里面无法获取到“CellColor”的数据,这个问题花了一天多时间才找到答案:Foreground="{Binding
2017-04-20 15:21:05
4053
转载 List<T>的各种排序方法
转载自:http://www.cnblogs.com/supperwu/archive/2012/06/13/2548122.html使用第二种委托的方法实现了自己所要的功能。近日,在工作的时候遇到要对一个大的List集合进行排序,于是就了解下各种List的排序方法。首先,排序自然就会想到用Sort方法,看看List的Sort方法各个重载版本:public void S
2017-03-31 19:51:02
385
原创 c# DataTable转List 和 List转 DataTable
1、///将Listpublic static DataTable ListToDataTable(IEnumerable collection) { var props = typeof(T).GetProperties(); var dt = new DataTable(); dt.Columns.AddRa
2017-03-31 19:42:33
3599
原创 c# DataTable中Select的使用
1、 DataTable关于Select的使用。 (1)、查询量为常量 DataTable dt = new DataTable(); dt.Select();
2017-02-15 10:32:45
6277
原创 WPF TreeView节点的展开和收缩
1、实现TreeView所有节点的展开和收缩 /// /// /// /// TreeView控件 /// true:展开 false:收缩 private void SetNodeExpandedState(ItemsControl control, bool expandNode)
2017-02-14 15:54:35
8502
原创 未能正确创建Visual c# 20xx,因此未能打开工程xxx,请重新安装Visual studio
解决方法1、在“开始”菜单中找到visual studio 的“visual Studio Tools”菜单:2、双击“VS2013开发人员命令提示”:3、输入以下命令: devenv /resetsettings 等待几分钟即可。
2017-02-06 11:24:52
847
原创 c# Devxpress 使用
1、 设置Devxpress的皮肤: SkinHelper.InitSkinGallery(skinGalleryBarItem, true); UserLookAndFeel.Default.SetSkinStyle("Blue");//将皮肤设为蓝色 DevExpress.UserSkins.OfficeSkins.Register();
2016-08-09 20:40:02
810
转载 c# MD5的加密和解密
转自:http://www.cnblogs.com/cccc/archive/2009/10/21/1587226.html已验证,OK!using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptog
2016-05-30 20:01:03
1881
转载 c# dataGridView导出数据到EXcel
public static void ExportExcelAll(DataGridView dataGridView1) { int columnCount = 0; //导出到execl try { //没有数据的话就不往下执行
2016-05-05 17:17:37
1608
转载 c# 获取文件路径的几种方法
C# 截取带路径的文件名字,扩展名,等等 的几种方法C#对磁盘IO操作的时候,经常会用到这些,路径,文件,文件名字,文件扩展名. 之前,经常用切割字符串来实现, 可是经常会弄错. 尤其是启始位置,多少个字节,经常弄晕. 下面这种方法貌似比较简便: string filePath = @"E:\Randy0528\中文目录\JustTest.rar";Re
2016-04-29 11:47:50
9448
1
原创 c# GroupBox 只修改标题的字体和颜色
1、在页面上拖出控件并放在想要位置。2、拖出GroupBox控件,覆盖住上面的控件,右键选择“置于底层”。3、在代码中修改Text的颜色和字体:groupBox3.ForeColor = System.Drawing.Color.Blue; groupBox3.Font = new Fone(groupBox3.Font.FontFamily,12,g
2016-03-07 08:46:32
8821
1
原创 C# combox不能输入的解决方法
使Combox不能输入的两种方法。方法一、 选择combox的 DropDownStyle = DropDownList 选择框不能选择。方法二、 (1)选择 combox的 DropDownStyle = DropDown; (2)设置combox的 KeyPress事件 private void cbDeviceT
2015-07-22 21:00:42
2544
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人