Skip to content

Update LinkedIn scraper to wait for presence of grid elements#3

Open
alecavallo wants to merge 1 commit into
axblueblader:masterfrom
alecavallo:master
Open

Update LinkedIn scraper to wait for presence of grid elements#3
alecavallo wants to merge 1 commit into
axblueblader:masterfrom
alecavallo:master

Conversation

@alecavallo

Copy link
Copy Markdown

The current implementation of the "Company" component was consistently failing due to the WebDriverWait condition for the //span[@dir="ltr"] element. This element has been removed from the webpage, causing the wait to time out.

To address this issue, I've introduced a new WebDriverWait condition using a CSS selector: div.scaffold-finite-scroll__content > ul > li.grid. This selector accurately targets the desired element on the page, ensuring that the component waits for the correct element to be present before proceeding.

Changes:

  • Added: New WebDriverWait condition using a CSS selector.
  • Removed: Outdated WebDriverWait condition for the //span[@dir="ltr"] element.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant