mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
def something_present(text)
|
||||
begin
|
||||
@wait = Selenium::WebDriver::Wait.new(timeout: WAITTIME)
|
||||
@wait.until { find_element(:accessibility_id, text).displayed? }
|
||||
@something_displayed = find_element(:accessibility_id, text).displayed?
|
||||
rescue
|
||||
@something_displayed = false
|
||||
end
|
||||
@something_displayed
|
||||
end
|
||||
|
||||
def debug
|
||||
require 'pry'
|
||||
binding.pry
|
||||
end
|
||||
Reference in New Issue
Block a user