ie.#{element}(:id,"foo").document.currentstyle.attributeAsCamelCase
so
ie.#{element}(:id,"foo").document.currentstyle.fontFamily
ie.#{element}(:id,"foo").document.currentstyle.fontSize
ie.#{element}(:id,"foo").document.currentstyle.color
Sometimesyou have to use invoke:
ie.#{element}(:id,"foo").document.currentstyle.invoke(attributeAsCamelCase)
thevisible method works this way:
ie.#{element}(:id,"foo").document.currentstyle.invoke("display")
ie.#{element}(:id,"foo").document.currentstyle.invoke("isDisabled") Find the list of available methods: ie.#{element}(:id,"foo").document.currentstyle.ole_methods #puts ie.div(:class,/TopbackgroudTopFont/).document.currentstyle.fontSize #puts ie.div(:class,/TopbackgroudTopFont/).document.currentstyle.color #puts ie.div(:class,/TopbackgroudTopFont/).document.currentstyle.backGroundColor #puts ie.div(:class,/TopbackgroudTopFont/).document.currentstyle.scrollbarBaseColor Get class name by puts ie.span(:text,/running/i).class_name Get the _eventID attribute by: puts ie.span(:text,/running/i).document.getAttribute("_eventID")
puts $ie.div(:id,"workout_29251129").document.getAttributeNode('_eventID').value or puts ie.span(:text,/running/i).attribute_value("_eventID")

最新文章

  1. JAVAWEB贵美网上商城完整项目源码(SSH2)
  2. 【Java讨论】引用类型赋值为null对加速垃圾回收的作用(转载)
  3. 自话自说——POI使用需要注意一个地方
  4. 6 HandlerDescriptor 处理程序描述类——Live555源码阅读(一)基本组件类
  5. Python文件格式化写入
  6. showdialog窗体不在任务栏显示的问题处理
  7. Word Frequency
  8. php 字母大小写转换的函数
  9. C# Double类型 不四舍五入
  10. 解决windows下的mysql匿名登陆无法使用mysql数据库的问题
  11. qml动画控制器AnimationController
  12. Codeforces Round #436 (Div. 2)
  13. vuex入门
  14. Unity3D学习(三):利用NGUI实现一个简单的左右摇杆
  15. 大数据入门到精通7--对复合value做reducebykey
  16. 每天一个linux命令(8):scp使用
  17. C# 在项目中配置Log4net
  18. BLE资料应用笔记 -- 持续更新(转载)
  19. 使用配置文件启动MongoDB
  20. JDBC远程连接数据库

热门文章

  1. 【Ajax 1】Ajax与传统Web开发的区别
  2. AR+ 实时音视频通话,虚拟与现实无缝结合
  3. HDU 2222 最简单的AC自动机套模板应用
  4. 一段曲折的copy路程
  5. flex里InputText不能输入中文
  6. excludepathpatterns 无效
  7. CodeForces 592D Super M
  8. HDU 3001【状态压缩DP】
  9. makefile的语法及写法(二)
  10. 210 Course ScheduleII