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=";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>



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

    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.