title: Xpath to find an element using partial class name and exact text with capybara in ruby
body: <p>I have html code with div having same matching text in class name as menu1 and text like </p>
  
  <blockquote>
    <p>Berlin </p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>Berlin Germany</p>
  </blockquote>
  
  <p>for which when i use below code returns ambiguous elements</p>
  
  <p>find(:xpath, "//div[contains(text(), \"Berlin\") and contains(@class, \"menu1\")]")</p>
  
  <p>Note: I want both class and text to be in my xpath</p>
  
  <p>Suggestions will be appreciated, thanks in advance.</p>