Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
Need help to get a value of an xPath in puppeteer

I want to get the value of an exact xpath, that has a value of 1,400. Can not use any span or label class name because their are multiple classes with the same class or label name. So i have found out i have to use the Xpath. Any suggestions?

HTML:

<span class="currency-coins value">1,400</span>

Full xpath:

/html/body/main/section/section/div[2]/div/div/section[2]/div[2]/section/div[2]/ul/li[1]/div/div[2]/div[3]/span[2]/text()

Image of the Code

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If the label is unique you can try:

//*[contains(text(), 'Kjop na')][0]/following-sibling::*
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!