XPATHの親指定

qiita.com

    "//a[span/span[contains(text(), '次へ')]]"
    "//a[span[span[contains(text(), '次へ')]]]"
    "//a/span/span[contains(text(), '次へ')]/../.."
    "//a/span/span[contains(text(), '次へ')]/parent::*/parent::*"
    "//a/span/span[contains(text(), '次へ')]/parent::node()/parent::node()"
    "//a/span[span[contains(text(), '次へ')]]/.."
    "//a/span[span[contains(text(), '次へ')]]/parent::*"
    "//a/span[span[contains(text(), '次へ')]]/parent::node()"