ruby+webdriver用xpath定位对象
摘要:
例子1、dr.find_element(:xpath=> %Q{//div[@onclick='openme()']}).click例子2、dr.find_element(:xpath, '/html/body/form/div[3]/div/label/input').click 阅读全文
posted @ 2014-02-11 11:23 freedomdym 阅读(166) 评论(0) 推荐(0) 编辑