在自动化测试的过程中,经常会出现这样的场景:按住Ctrl的同时,进行单击操作,已达到多选的目的Actions a = new Actions(driver);a.keyDown(Keys.CONTROL).perform();for(int i = 0;i<quantity;i++){ W...
分类:
其他好文 时间:
2014-07-09 21:33:36
阅读次数:
305
Output Control 函数可以让你自由控制脚本中数据的输出。它非常地有用,特别是对于:当你想在数据已经输出后,再输出文件头的情况。输出控制函数不对使用 header() 或 setcookie(), 发送的文件头信息产生影响,只对那些类似于 echo() 和 PHP 代码的数据块有作用。我们...
分类:
Web程序 时间:
2014-07-09 17:45:21
阅读次数:
272
apache:方法1: Header set Access-Control-Allow-Origin "*" 方法2:在字体目录下写一个.htaccessHeader set Access-Control-Allow-Origin "*"nginx:location ~*...
分类:
其他好文 时间:
2014-07-09 17:24:19
阅读次数:
231
ContentPropertyAttribute 是使用在类的声明上的特性,表示xmal标签内容对应的clr类中的属性,目前发现Control的子类下有这几种属性:1.Content。这个是最常见的啦。ContentControl、Page 2.Items。ItemsControl 3.Do...
分类:
其他好文 时间:
2014-07-08 23:29:52
阅读次数:
224
Modal模式是指模态切换,新开的界面会挡住之前的界面,使之不能获取焦点。
创建一个singleView模板的程序,打开storyboard文件,拖动2个UIViewController到界面中,按住control,从按钮处直接拖动到第2个vc如图:
然后放开,选择modal模式: 意思就是只要点击按钮 就能从下到上弹出第2个界面
对于每个uiviewController,...
分类:
移动开发 时间:
2014-07-08 10:57:18
阅读次数:
240
TCP(Transmission Control Protocol) 传输控制协议TCP是主机对主机层的传输控制协议,提供可靠的连接服务,采用三次握手确认建立一个连接:位码即tcp标志位,有6种标示: SYN(synchronous建立联机) ...
分类:
其他好文 时间:
2014-07-08 00:21:03
阅读次数:
323
从 http://www.a.com/test.html 发起一个跨域请求,请求的地址为: http://www.b.com/test.php,如果 服务器B返回一个如下的headerAccess-Control-Allow-Origin: http://www.a.com,那么,这个来自 http...
分类:
数据库 时间:
2014-07-06 20:36:07
阅读次数:
317
一、时序图简介(Brief introduction) 二、时序图元素(Sequence Diagram Elements)角色(Actor)对象(Object)生命线(Lifeline)控制焦点(Focus of Control)消息(Message)自关联消息(Self-Message)Com....
分类:
其他好文 时间:
2014-07-06 13:38:54
阅读次数:
254
There's a much simpler solution for this. Try running the following command:sudo /usr/sbin/DevToolsSecurity --enable
分类:
数据库 时间:
2014-07-05 22:43:50
阅读次数:
451
private RichTextBox FindControl() { RichTextBox ret = null; try { Control[] controls = Application.OpenForms["MainForm"].Controls.Find("txtContent", ....