{Spam?} Re: need help with selenium

Nagy László Zsolt gandalf at shopzeus.com
Tue Sep 15 14:18:46 CEST 2015

> After clicking on submit button, a message is displayed on the same page whether login was successful or not.
> However after clicking on submit button, I lose control over the web page. I can't use any selenium functions now like 'driver.find_element_by_name()'.
You need to wait until the submit completes. Firefox works in paralel in 
the background, so don't expect the new page to be loaded right after 
you called .submit().

One way to do it is this: after calling submit, call this:


This call will return ONLY if the page has completed loading. Then you 
can get page_source or do whatever you want.

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the Python-list mailing list