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
Post a Comment