Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
48b53b40
Commit
48b53b40
authored
Feb 20, 2017
by
Mikaël Salson
Browse files
vidjil_browser.rb: Move IDs to specific functions
This allows to reuse the main code, even with different IDs
parent
c59937b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/test/vidjil_browser.rb
View file @
48b53b40
...
...
@@ -116,7 +116,7 @@ class VidjilBrowser < Watir::Browser
# Return the div containing the information (status bar)
def
infoline
return
div
(
:id
=>
'bot-container'
).
div
(
:class
=>
'focus'
)
return
div
(
:id
=>
segmenter_id
).
div
(
:class
=>
'focus'
)
end
# Return the span of the locus
...
...
@@ -234,7 +234,7 @@ class VidjilBrowser < Watir::Browser
# Return the div containing stats information on selected clone(s)
def
statsline
div
(
:id
=>
'bot-container'
).
div
(
:class
=>
'stats'
)
div
(
:id
=>
segmenter_id
).
div
(
:class
=>
'stats'
)
end
# Return an item from a tag selector split in a hash.
...
...
@@ -292,10 +292,18 @@ class VidjilBrowser < Watir::Browser
return
div
(
:id
=>
'list_clones'
)
end
private
protected
def
scatterplot_id
return
'visu_axis'
end
def
segmenter_id
return
'bot-container'
end
def
scatterplot
(
axis
)
return
element
(
:id
=>
'visu_axis
_'
+
axis
+
'_container'
)
return
element
(
:id
=>
scatterplot_id
+
'
_'
+
axis
+
'_container'
)
end
def
scatterplot_legend
(
axis
,
index
)
...
...
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