Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
f9e525f7
Commit
f9e525f7
authored
Sep 19, 2015
by
kytv
Browse files
Add wait_and_focus helper function
parent
bb560d66
Changes
1
Hide whitespace changes
Inline
Side-by-side
features/step_definitions/pidgin.rb
View file @
f9e525f7
...
...
@@ -18,6 +18,15 @@ EOF
return
account
end
def
wait_and_focus
(
img
,
time
=
10
,
window
)
begin
@screen
.
wait
(
img
,
time
)
rescue
FindFailed
@vm
.
focus_window
(
window
)
@screen
.
wait
(
img
,
time
)
end
end
def
focus_pidgin_irc_conversation_window
(
account
)
account
=
account
.
sub
(
/^irc\./
,
''
)
@vm
.
focus_window
(
".*
#{
Regexp
.
escape
(
account
)
}
$"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment