How to scrape multiple pages using selenium where next page data is loaded with js _doPostBack() I need to loop through all pages

113 views Asked by At
        for i in range(2,12):
            try:
                # q = '//* [@id="Content"]/tbody/tr[18]/td/table/tbody/tr/td['+str(i)+']'
                # continue_link = browser.find_element_by_xpath(q).click()
                q = str(i)
                continue_link = browser.find_element_by_partial_link_text('Page$'+q).click()

Iam able to use commented lines but there is limitation when it come to 11(I am getting struck with "..."symbol) 9 10 ... So instead of that I choose to use href but next page is loading using JS _doPostBack method. I need to select go through each page until end page. Please help.

0

There are 0 answers