Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
vidjil
vidjil
Commits
ecfa9f41
Commit
ecfa9f41
authored
Mar 28, 2019
by
Mikaël Salson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vidjil_browser.rb: Make retrieving a link from a menu easier
parent
1fe7cb9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
browser/test/functional/vidjil_browser.rb
browser/test/functional/vidjil_browser.rb
+25
-0
No files found.
browser/test/functional/vidjil_browser.rb
View file @
ecfa9f41
...
...
@@ -171,6 +171,18 @@ class VidjilBrowser < Watir::Browser
return
div
(
:id
=>
'settings_menu'
)
end
def
menu_palette
return
div
(
:id
=>
'palette_menu'
)
end
def
menu_help
return
div
(
:id
=>
'help_menu'
)
end
def
menu_upload
return
div
(
:id
=>
'upload_summary'
)
end
def
menu_item_export
(
id
,
extra
=
{})
menu
=
menu_import_export
menu
.
click
...
...
@@ -185,6 +197,19 @@ class VidjilBrowser < Watir::Browser
return
menu_item_export
(
'export_fasta_align'
,
extra
)
end
def
menu_item
(
id
,
extra
=
{})
item
=
element
(
extra
.
merge
(
:id
=>
id
))
assert
(
item
.
exists?
)
parent
=
item
.
parent
while
parent
.
tag_name
!=
"body"
and
not
parent
.
classes
.
include?
"menu"
parent
=
parent
.
parent
end
if
parent
.
tag_name
!=
"body"
parent
.
click
end
return
item
end
def
merge
return
element
(
:id
=>
'merge'
)
end
...
...
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