find element in selenium by css h2

I want to find the element of this link “Dropchord” in  <h2>

. I am trying this in craigslist. Any help will be highly appreciated


 <a class="a-link-normal s-access-detail-page  a-text-normal" title="Dropchord" href="http://www.amazon.de/Double-Fine-Productions-Dropchord/dp/B00E0OK2X2/ref=sr_1_2?s=mobile-apps&amp;ie=UTF8&amp;qid=1427791650&amp;sr=1-2&amp;keywords=AS-Productions">

<h2 class="a-size-base a-color-null s-inline s-access-title a-text-normal">Dropchord</h2>

</a>


thanks

Default Asked on March 31, 2015 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Hi,
    Solution is

    
    IList<IWebElement> AppName = driver.FindElements(By.XPath("//h2[@ class='a-size-base a-color-null s-inline s-access-title a-text-normal']"));
    

    Default Answered on April 2, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.