I wolud like to use xpath to get filed I marked on the screenshot.

Comments

1 comment

  • Scarlett

    The Xpath should be 
    //span[text()='Konsystencja']/../following-sibling::dd

    .. is used to locate the parent element. 

    As you can see in the HTML code:


    <dt> is the parent of <span>. <dt> and <dd> are siblings.

    0
    Comment actions Permalink

Please sign in to leave a comment.