From 0d30e454120597035a5e95f421215aa7b9d917e7 Mon Sep 17 00:00:00 2001 From: nichita Date: Wed, 29 Aug 2018 18:35:08 +0300 Subject: [PATCH] Fix selector for SidebarAction. --- odoo_10_0.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo_10_0.robot b/odoo_10_0.robot index a8b90fc..d9dcd3d 100644 --- a/odoo_10_0.robot +++ b/odoo_10_0.robot @@ -394,9 +394,9 @@ SidebarActionOld [Arguments] ${type} ${id} old_SidebarAction [Arguments] ${type} ${index} # open the menu - Click Element xpath=//div[contains(@class,'o_cp_sidebar')]/div/div[@class='o_dropdown' and @data-bt-type='${type}'] + Click Element xpath=//div[contains(@class,'o_cp_sidebar')]/div/div[not(contains(@style,'display: none'))]/button # click on the menuentry - Click Element xpath=//div[contains(@class,'o_cp_sidebar')]/div/div[contains(@class,'o_dropdown') and @data-bt-type='${type}']/ul/li/a[@data-section='${type}' and @data-index='${index}'] + Click Element xpath=//div[contains(@class,'o_cp_sidebar')]/div/div[not(contains(@style,'display: none'))]/ul/li/a[@data-section='${type}' and @data-index='${index}'] MainWindowButton [Arguments] ${button_text}