79453125

Date: 2025-02-20 01:15:43
Score: 1
Natty:
Report link

Thanks everyone for responding to my question. Unfortunately, Puppeteer does not have a direct answer to this scenario. The only way to achieve the outcome is to filter out all text boxes and then apply another filter to find the right text box. Not an direct fix but an hack based on the label element.

I mean, formulate an XPath to find an label element which has "First" and then from that collection, apply an index.

Happy to help if you need more information

STEP 1 : Find all text boxes. =>collection1[]

STEP 2 : Find those text boxes who has First as an associated Label=>collection2[]

STEP 3 : Fetch as per the index, Say collection2[0]

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Timothy Rajan