Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.py #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update main.py #16

wants to merge 1 commit into from

Conversation

Nodnarb1192
Copy link

Update for Linkedin page changes and selenium update

update for linkedin page changes and selenium update
total_pages = find_pages[len(find_pages)-1].text
total_pages_int = int(re.sub(r"[^\d.]", "", total_pages))
get_last_page = self.driver.find_element_by_xpath("//button[@aria-label='Page "+str(total_pages_int)+"']")
get_last_page = self.driver.find_element(By.XPATH, "//button[@aria-label='Page "+str(total_pages_int)+"']")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception has occurred: NoSuchElementException
Message: no such element: Unable to locate element: {"method":"xpath","selector":"//button[@aria-label='Page ']"}

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.

2 participants