spec/pageobjects/core_page_object.rb
# for similar elements: find parent, inside parent find needed element
for similar elements: find parent, inside parent find needed element
for similar elements : find parent inside parent find needed element
def find_element_with_text_by_parent_xpath_and_click(parent, locator, my_text)
    within(:xpath, parent) do
      find(locator, text: my_text).click
    end
  end
def find_element_with_text_by_parent_xpath_and_click ( parent , locator , my_text ) within ( :xpath , parent ) do find ( locator , text : my_text ) . click end end
for similar elements: find parent, inside parent find needed element
for similar elements : find parent inside parent find needed element
parent
locator
my_text