I am trying to get a element from this page in python with Selenium:
That's the search result in public profile https://www.linkedin.com/jobs/search?keywords=Data%20New%20Test&location=Toronto%2C%20Ontario%2C%20Canada&geoId=100025096&trk=public_jobs_jobs-search-bar_search-submit&position=1&pageNum=0
job_click_path = f'/html/body/div[1]/div/main/section[2]/ul/li[2]/div/a/li[{item+1}]/img'
job_click = job.find_element_by_xpath(job_click_path).click()
I tried different combination and still can't make it work. How I can get it the element xpath work to open these links on click?
source https://stackoverflow.com/questions/69744355/selenium-with-python-unable-to-locate-element
Comments
Post a Comment