Commit c59937b6 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

vidjil_browser.rb: Clone in the scatterplot may not be a circle

It can also be a bar when the view is in histogram.
We select the one which is visible
parent 2aa93512
......@@ -57,7 +57,14 @@ class VidjilBrowser < Watir::Browser
# Return the clone on the scatterplot
# Beware the id must be a string
def clone_in_scatterplot(id, extra={})
return element(extra.merge(:id => "circle"+id))
circle = element(extra.merge(:id => "circle"+id))
if circle.exists? and not circle.visible?
bar = element(extra.merge(:id => "bar"+id))
if bar.exists? and bar.visible?
return bar
return circle
# Return the clone in the graph
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment