From 40e9b1c51b63fa2b947cc67f868c9ade992a311c Mon Sep 17 00:00:00 2001 From: nestrik Date: Wed, 7 Feb 2018 14:41:20 +0500 Subject: [PATCH] fix: invocation of an invisible element --- lib/pages/company_site/eti_page.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pages/company_site/eti_page.rb b/lib/pages/company_site/eti_page.rb index 5d5514a..f97410f 100644 --- a/lib/pages/company_site/eti_page.rb +++ b/lib/pages/company_site/eti_page.rb @@ -327,7 +327,9 @@ def delete_product(name) search_product(name) Page.button(:delete_product_icon, xpath: "//td[@data-text='#{name}']/..//i[contains(@class, 'js-delete-product')]") + Page.span(:product_line, xpath: "//td[@data-text='#{name}']/ancestor::tr[contains(@class,'pt-tr')]") + product_line_element.hover confirm(true) { delete_product_icon } wait_saving end