How to paginate through the page numbers when href contains javascript:__doPostBack()
问题 I'm trying to scrape this website http://www.mfa.gov.tr/sub.ar.mfa?dcabec54-44b3-4aaa-a725-70d0caa8a0ae but when I want to go to next page I can't because the link doesn't change you will find that pages links are like that href="javascript:__doPostBack('sb$grd','Page$1')" I have a code that I tried but it only goes to page 2 and then gave me an error: tale element reference: element is not attached to the page document from selenium import webdriver url = 'http://www.mfa.gov.tr/sub.ar.mfa