another object finder
This commit is contained in:
parent
06e59c26fd
commit
d0c101f032
|
@ -85,8 +85,13 @@ def dont_find(search)
|
|||
end
|
||||
|
||||
def dont_find_object(object)
|
||||
case object
|
||||
when Class
|
||||
dont_find("[data-type='#{object}']")
|
||||
else
|
||||
dont_find("[data-id='#{object.id}']")
|
||||
end
|
||||
end
|
||||
|
||||
def find_object(object)
|
||||
find(object_matcher(object))
|
||||
|
|
Loading…
Reference in New Issue