Commit ec3c9bf7 authored by Mikaël Salson's avatar Mikaël Salson

vidjil_browser.rb: Hover after clicking

When clicking it seems that the mouse isn't necessarily over the menu. Thus it
will open and close just after because the mouse isn't over the menu.

Fix #3987
parent 24ce6e00
Pipeline #95722 passed with stages
in 6 minutes and 10 seconds
...@@ -184,9 +184,7 @@ class VidjilBrowser < Watir::Browser ...@@ -184,9 +184,7 @@ class VidjilBrowser < Watir::Browser
end end
def menu_item_export(id, extra = {}) def menu_item_export(id, extra = {})
menu = menu_import_export return menu_item(id, extra)
menu.click
return menu.a(extra.merge(:id => id))
end end
def menu_item_export_fasta(extra = {}) def menu_item_export_fasta(extra = {})
...@@ -206,6 +204,7 @@ class VidjilBrowser < Watir::Browser ...@@ -206,6 +204,7 @@ class VidjilBrowser < Watir::Browser
end end
if parent.tag_name != "body" if parent.tag_name != "body"
parent.click parent.click
parent.hover
end end
return item return item
end end
......
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