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