Skip to content

Commit

Permalink
fix: invocation of an invisible element
Browse files Browse the repository at this point in the history
  • Loading branch information
Nestrik committed Feb 7, 2018
1 parent f56ff39 commit 40e9b1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pages/company_site/eti_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40e9b1c

Please sign in to comment.