DEV Community

Discussion on: Strapi, another use case: Build your own API from any website with Puppeteer

Collapse
 
hichamelbsi profile image
ELABBASSI Hicham • Edited

If the selector doesn't work, you can go to the Linkedin job search with your browser a copy the li selector in the DEV tools.

Collapse
 
seefor profile image
Sif Baksh • Edited

Dude this is great man, I got it to work and thanks for teaching me.

Here is the update li to update:
li.result-card.job-result-card.result-card--with-hover-state.job-card__contents--active

Thread Thread
 
hichamelbsi profile image
ELABBASSI Hicham • Edited

Thank you, Sif!

Well, it seems that the selector in the tutorial is still working li.result-card.job-result-card. Be careful, the selector in your reply will select only the active list item (as you can see, the .job-card__contents--active is the active CSS class for a selected list item). We need all the list items (not just the selected one) so you need to get a more generic selector.

Thread Thread
 
seefor profile image
Sif Baksh

Thanks for that, I will give that a try