Refactoring: Set wait timeout to 0 for modal element checks to improve lookup performance.
This commit is contained in:
parent
afa6b9984a
commit
57b1defd8d
1 changed files with 2 additions and 2 deletions
|
@ -187,14 +187,14 @@ module CommonActions
|
|||
#
|
||||
# @param timeout [Integer] seconds to wait
|
||||
def modal_ready(timeout: 4)
|
||||
wait(timeout).until_exists { find('.modal.in') }
|
||||
wait(timeout).until_exists { find('.modal.in', wait: 0) }
|
||||
end
|
||||
|
||||
# Checks if modal has disappeared
|
||||
#
|
||||
# @param timeout [Integer] seconds to wait
|
||||
def modal_disappear(timeout: 4)
|
||||
wait(timeout).until_disappears { find('.modal.in') }
|
||||
wait(timeout).until_disappears { find('.modal', wait: 0) }
|
||||
end
|
||||
|
||||
# Scrolls to given element
|
||||
|
|
Loading…
Reference in a new issue