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


Groups > comp.lang.python > #66163 > unrolled thread

querry to get status code in selinium webdriver , unable to find it , requesting to please help me

Started byJaiprakash Singh <jaiprakash@wisepromo.com>
First post2014-02-13 03:21 -0800
Last post2014-02-13 12:31 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  querry to get status code in selinium webdriver  , unable to find it , requesting to please help me Jaiprakash Singh <jaiprakash@wisepromo.com> - 2014-02-13 03:21 -0800
    Re: querry to get status code in selinium webdriver  , unable to find it , requesting to please help me Nagy László Zsolt <gandalf@shopzeus.com> - 2014-02-13 12:31 +0100

#66163 — querry to get status code in selinium webdriver , unable to find it , requesting to please help me

FromJaiprakash Singh <jaiprakash@wisepromo.com>
Date2014-02-13 03:21 -0800
Subjectquerry to get status code in selinium webdriver , unable to find it , requesting to please help me
Message-ID<7a9cc6d8-c18c-4dd4-862e-c07b3b31b1c9@googlegroups.com>
hello all,

          i am searching how to get status code in selinium (with python), but unable to find it . can anyone help me in this matter

actually my aim is to scroll a page and after each scroll i want to find the status so that on bad status i can exit my code.

here ismy code in python

  for i in range(0,60):
        driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
        # i want status code here"
        time.sleep(1)

[toc] | [next] | [standalone]


#66165

FromNagy László Zsolt <gandalf@shopzeus.com>
Date2014-02-13 12:31 +0100
Message-ID<mailman.6830.1392292162.18130.python-list@python.org>
In reply to#66163
> here ismy code in python
>
>    for i in range(0,60):
>          driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
>          # i want status code here"
>          time.sleep(1)
Status of what? Are you asking the HTTP status of the page downloaded? 
That has nothing to do with your javascript code.

AFAIK window.scrollTo has no return value. So what kind of status are 
you talking about?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web