Selenium access page throws Elementnotvisibleexception exception

Source: Internet
Author: User

Problem Description:

The following exception was encountered when using selenium to cause the program to terminate:

Selenium.common.exceptions.ElementNotVisibleException:Message: {"errormessage": " Element is not currently visible and could not be manipulated "request" {"headers": {"Accept ":" Application/json "," accept-encoding ":" Identity "," Connection ":" Close "," Content-length ":" Bayi "," Content-type ":" Application/json;charset=utf-8 "," Host ":" 127.0.0.1:55400 "," user-agent ":" Python http Auth "}," Httpversion ":" 1.1 "," Method ":" Post "," POST ":" {\ "id\": \ ": wdc:1507345910060\", \ "sessionid\": \ "416c7180-ab0d-11e7-b13e-8162184dcb19\"} " , "url": "/click", "urlparsed": {"anchor": "", "Query": "", "File": "Click", "Directory": "/", "path": "/click", "relative": "/click", "Port": "", "host": "", "Password": "", "User": "", "UserInfo": "", "authority": "", "Protocol": "", "source": "/ Click "," Querykey ": {}," chunks ": [" click "]}," urloriginal ":"/session/416c7180-ab0d-11e7-b13e-8162184dcb19/element/ : Wdc:1507345910060/click "}}
Screenshot:available via screen

Workaround:

After starting the corresponding browser driver, add the following as shown in dark purple. (Note: This statement is used to set the window display size specification, preferably set to your current PC's PC resolution )

Brower = Webdriver. Chrome ()

Brower.set_window_size (1920, 1080)

Selenium access page throws Elementnotvisibleexception exception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.