Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96631

{Spam?} Re: need help with selenium

Subject {Spam?} Re: need help with selenium
References <bb6cf5b7-71f4-445e-8cdc-04259ddb77fb@googlegroups.com>
From Nagy László Zsolt <gandalf@shopzeus.com>
Date 2015-09-15 14:18 +0200
Newsgroups comp.lang.python
Message-ID <mailman.593.1442320080.8327.python-list@python.org> (permalink)

Show all headers | View raw


> 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:

self.browser.find_element_by_tag_name("body")

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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

need help with selenium shiva upreti <katewinslet626@gmail.com> - 2015-09-14 12:40 -0700
  {Spam?} Re: need help with selenium Nagy László Zsolt <gandalf@shopzeus.com> - 2015-09-15 14:18 +0200

csiph-web