Skip to content

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