How to find object by multiple attributes in sahi for ruby -


in sahi controller, works fine

_div({classname:"/class.*/",id:"id"}) 

but tried below in sahi ruby, returns false.

@browser.div('{classname:"/class.*/",id:"id"}').exists? 

try now:

assert @browser.div(@browser.eval('({classname:"class",id:"id"})')).exists 

this work.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -