2012年8月23日

Selenium-webdriver系列教程(11)————fire event的替代方案

摘要: webdriver里面已经没有了fire_event方法,就像世界上再也没有萨达姆,本拉登和卡扎菲一样。不过我们可以通过其他方法来实现fire_event的相似功能。考虑下面的html,当鼠标悬停到Mouse Over Here链接上时,js的mouseover事件被触发,show_tips()函数将被执行,隐藏的tips div会显示在页面上。<html> <head> <title>FireEvent</title> <style> .mo {color: blue;} .tips {display:none;b... 阅读全文

posted @ 2012-08-23 15:15 tim_sheng 阅读(2320) 评论(0) 推荐(0) 编辑

导航