title: How can find the Favorite button and click it with Selenium WebDriver?
body: <p>Updated description:</p>
  
  <p>Here is the listing from Redfin.com <a href="https://www.redfin.com/CA/Sunnyvale/735-Grape-Ave-94087/home/1835008" rel="nofollow noreferrer">https://www.redfin.com/CA/Sunnyvale/735-Grape-Ave-94087/home/1835008</a>, what I want to locate and click is the "Favorite" button on the top-right corner. I've tried the code in the old description as well as all the suggestions by others, but none of them works.</p>
  
  <p>Can someone guide me how to locate the icon in Selenium webdriver?</p>
  
  <p>Thanks a lot!</p>
  
  <p>+++++++++++++++++BELOW IS OLD PROBLEM DESCRIPTION+++++++++++++++++++++++++
  I have this button:</p>
  
  <pre><code>&lt;div role="button" title="Favorite" tabindex="0" class="clickable button tertiary-alt" data-rf-test-name="homeControlButton"&gt;
  &lt;span&gt;&lt;svg class="SvgIcon rfSvg favorite svg-icon-off-color" style="height:24px;width:24px"&gt;&lt;svg viewBox="0 0 24 24"&gt;&lt;/svg&gt;&lt;/svg&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>But I tried with find XPath by:</p>
  
  <pre><code>browser.find_element_by_xpath("//*[@class='clickable button tertiary-alt' and @title='favorite']").click()
  </code></pre>
  
  <p>But it doesn't work. Any help?</p>