Search code examples
seleniumurlselenium-webdriverurl-routing

Navigating to a page 2 URL in selenium


I am trying to navigate to this link using selenium selenium:

https://www.pwccmarketplace.com/market-price-research?q=upper%20deck%20auston%20matthews%20rc%20young%20guns%20psa%2010&year_min=2004&year_max=2019&price_min=50&price_max=10000&sort_by=date_desc&sale_type=auction&items_per_page=250&page=2

Its a page 2 of a search query. But when it open it up in a new browser, the results shows the results of page 1 in the search query. Is there anyway I can overcome this and get the page 2 results when I open it in a new browser?

Thanks very much in advance!


Solution

  • If i use driver.get twice then it takes me to 2nd page. Please check and let me know whether this helps or not. 2nd time it redirects me to correct page.

    driver.get("https://www.pwccmarketplace.com/market-price-research?q=upper%20deck%20auston%20matthews%20rc%20young%20guns%20psa%2010&year_min=2004&year_max=2019&price_min=50&price_max=10000&sort_by=date_desc&sale_type=auction&items_per_page=250&page=2");
    driver.get("https://www.pwccmarketplace.com/market-price-research?q=upper%20deck%20auston%20matthews%20rc%20young%20guns%20psa%2010&year_min=2004&year_max=2019&price_min=50&price_max=10000&sort_by=date_desc&sale_type=auction&items_per_page=250&page=2");