1.
点击某个图标,只有点击左半边有效(左半边是一个链接,右半边是一个div),click()选中的是元素的中间位置。用以下方法可解决Actions action =
new Actions(view); //X,Y坐标是从元素的左上角开始的 action.moveToEleme...
分类:
其他好文 时间:
2014-05-24 01:47:12
阅读次数:
233
ctrl + element public void ctrl(String element){
Actions action=new Actions(driver);
driver.findElement(By.xpath(element)).click(); action.sendKeys...
分类:
Web程序 时间:
2014-05-24 00:52:48
阅读次数:
245
JSP页面用EL表达式 输出date格式1、头上引入标签2、使用:3. 案例
${data.restaurantName } ...
分类:
Web程序 时间:
2014-05-24 00:46:44
阅读次数:
336
js方式的页面跳转1.window.location.href方式
2.window.navigate方式跳转
3.window.loction.replace方式实现页面跳转,注意跟第一种方式的区别有3个jsp页面(1.aspx, 2.aspx,
3.aspx),进系统默认的是1.aspx,当我进...
分类:
Web程序 时间:
2014-05-23 23:51:18
阅读次数:
575
1. 创建一个新的web工程,导入springMVC的jre包。2. web.xml添加配置
index.jsp webAppRootKey springmvc.root contextC...
分类:
编程语言 时间:
2014-05-23 22:24:41
阅读次数:
452
1.触发器:{server_name:item_name.func.operator.condition}一旦condition(条件)触发,则item状态改变触发器之间可以存在依赖关系,即itemA触发,则itemB也触发.2.动作actionaction是触发器触发后,应该采取的动作.其中动作除...
分类:
其他好文 时间:
2014-05-23 12:42:59
阅读次数:
460
Insert title
herec:out标签的使用可以获取request,session,application的值 parameter的值(得到不了):
---${attr_request} ---${attr_session} ---${attr_applicati...
分类:
Web程序 时间:
2014-05-23 12:24:14
阅读次数:
493
/* 用户按下触摸屏、快速移动后松开public boolean
onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
{//参数解释:// e1:第1个ACTION_DOWN MotionEvent// ...
分类:
移动开发 时间:
2014-05-23 11:46:44
阅读次数:
332
写这个帖子的缘由是因为在页面参数传到rails的controller时用params[:]和params[""]都可以取到值:[1] pry(#)>
params=> {"action"=>"show", "controller"=>"books", "id"=>"382"}[2]
pry(#)> ...
分类:
其他好文 时间:
2014-05-23 11:10:59
阅读次数:
307
重构前的状态:
大量的js代码混在繁多的Jsp文件中,对第三方的js库依赖也很杂乱。虽然在部分交互性较强的页面中,将js代码分离到了独立的js文件中,但是代码结构及依赖管理依然很乱。不说新人来了无所适从,就是我自己看了,也会一头雾水。不是代码有多深奥,是看着实在太累。于是,一次重构工作开始了。重构中...
分类:
Web程序 时间:
2014-05-23 11:05:17
阅读次数:
449