<commit_before>

class HomePage < ExampleStorefrontRootPage

  add_id_element(:div, /Automation Practice Website/, id: 'editorial_block_center')
  add_route(:DressesPage, :dresses_button)
  add_route(:SignInPage, :sign_in_button)

  def create_elements

    add_button(:dresses, element_type: :link, xpath: "//div[@id='block_top_menu']/ul/li[2]/a")

    add_static_text(:phone_info, element_type: :span, class: 'shop-phone')
    add_static_text(:practice_header, element_type: :h1, xpath: "//div[@id='editorial_block_center']/h1")
    add_static_text(:sub_header, element_type: :h2, xpath: "//div[@id='editorial_block_center']/h2")

  end

end<commit_msg>Adding example of using Hover to navigate<commit_after>

class HomePage < ExampleStorefrontRootPage

  add_id_element(:div, /Automation Practice Website/, id: 'editorial_block_center')
  add_route(:DressesPage, :dresses_button)
  add_route(:SignInPage, :sign_in_button)
  add_route(:CasualDressesPage, :navigate_to_casual_via_hover)

  def create_elements

    @dresses_link = add_button(:dresses, element_type: :link, xpath: "//div[@id='block_top_menu']/ul/li[2]/a")

    @casual_dresses_link = add_button(:casual_dresses, element_type: :link, xpath: "//*[@id='block_top_menu']/ul/li[2]/ul/li[1]/a")
    @casual_dresses_link.deactivate

    @dresses_link.on_hover do
      @casual_dresses_link.activate
    end

    add_static_text(:phone_info, element_type: :span, class: 'shop-phone')
    add_static_text(:practice_header, element_type: :h1, xpath: "//div[@id='editorial_block_center']/h1")
    add_static_text(:sub_header, element_type: :h2, xpath: "//div[@id='editorial_block_center']/h2")

  end

  def navigate_to_casual_via_hover
    @dresses_link.hover
    @casual_dresses_link.click
  end

end
{'fraction_non_alphanumeric': 0.13594994311717862, 'fraction_numerical': 0.006825938566552901, 'mean_word_length': 6.06425702811245, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6258591', 'n_tokens_mistral': 680, 'n_tokens_neox': 645, 'n_words': 100}