Skip to content

XPath doesnt seem to work. #81

Description

@Shamatix

I stumbled upon the SelectorLib and saw you were a contributor so I am reaching out in hope you can help me.

I am having a very hard time getting the "XPath" to work.
I am trying to scrape the following website:
https://oelkassen.dk/vare/false-pattern-modist-brewing-co/

And I am trying to get the following information out.
https://i.imgur.com/UhriGSf.png

I have multiple different XPaths that works if I am not using the Chrome SelectorLib plugin, however they dont seem to work in the plugin?

For example:
//strong[text()="Alcohol: "]/following-sibling::text()[1]

or
//html/body/div[6]/div/div[2]/div[2]/div[2]//strong[text()="Alcohol: "]/following-sibling::text()[1]

Both works in the developer tools, but not in the SelectorLib plugin.
https://i.imgur.com/8A0FG2v.png
https://i.imgur.com/NRbtZCv.png
I hope you can help me out

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions