Here is my code. In `Try` I am checking if specific text appears on load, if so process further. If I understand correctly, my code explicitly waits 10 seconds at every load and then waits another 15 until condition is met?

The question is, how can I see the page content after it fails to load and throws exception? I want to know why this happens, what is on the page or what is missing. Right now I reload the same page without condition, but since it is reloaded, it is not the same page that threw the exception. Is there any way to see the original page from `try`?

P.S. The while loop is just to check how it goes on scale.

P.P.S. I also try to append failed url to the list I iterate through. I believe it is a bad practice. But what harm can it make and what would be the best solution?

```
 driver = webdriver.PhantomJS(executable_path=r'C:\Python3\selenium\webdriver\phantomjs-2.1.1-windows\bin\phantomjs.exe',service_log_path=os.path.devnull)

while count < 20:
    for line in q:

        driver.get(line)
        try:
            WebDriverWait(driver, 40).until(EC.text_to_be_present_in_element((By.ID, 'searchProgressText'), 'Search complete'))

            text=driver.find_element_by_class_name("sortbar").text.encode().decode('ascii','ignore')

            start = text.find('Cheapest')
            stop = text.find('Best')
            date = (line[line.find('SDP0')+5:line.find('&AD')].split('&'))
            date = date[0]+ ' - ' + date[3][5:]
            dest = (' - ').join(line[line.find('SO0')+4:line.find('&SDP0')].split('&SD0='))
            print()
            print('count=', count)
            print(line)
            print(date)
            print(dest)
            print(text[start:stop])
            count+=1

        except:
            print()
            print('******')
            print('******')
            print("Failure", fcount, line)
            fcount+=1
        text=driver.find_element_by_id("searchProgressText").text.encode().decode('ascii','ignore')

        print(text)

        print('******')
        print('******')
        print()

        time.sleep(2)
driver.close()

```

This particular line takes too long to load. From 1.5 second up to 7 seconds. with most cases taking abour 3 seconds.

```
driver.get(line)

```

Is this ok? How can i influence the load time?