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