Execution code:
bro.execute_script('windows.scrollTo(0,document.body.scrollHeight)')
sleep(2)
Implementation results:
selenium.common.exceptions.JavascriptException: Message: javascript error: windows is not defined
(Session info: chrome=91.0.4472.124)
Attention
don’t add s to windows.
pay attention when auto filling!!
Correct writing!!
bro.execute_script('window.scrollTo(0,document.body.scrollHeight)')
sleep(2)
Read More:
- [Solved] selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn
- [Solved] Selenium.common.exceptions.WebDriverException: Message: newSession
- Python+Selenium Error: AttributeError: ‘WebDriver‘ NameError: name ‘By‘ is not defined
- [Solved] Selenium Error: ERROR: Message: element not interactable
- Python Selenium Common Keyboard Controls
- Python Selenium: element is not attached to the page document error
- Chromdriver Install error: File “C:\python37\lib\site-packages\selenium\webdriver\common\service.py”, line 76, in start stdin=PIPE) File…
- NameError: name ‘null’ is not defined [How to Solve]
- [Solved] Tensorflow Error: NameError: name ‘layers‘ is not defined
- “NameError: name ‘re’ is not defined” [How to Solve]
- NameError: name “defaultParams“ is not defined [How to Solve]
- Python error collection: NameError: name ‘numpy’ is not defined
- NameError: name ‘xrange‘ is not defined [How to Solve]
- NameError: global name ‘***‘ is not defined [How to Solve]
- [Solved] Python serializate error: NameError: name ‘JSON’ is not defined
- Crawler overtime error socket.timeout: timed out/NameError: name ‘socket‘ is not defined
- NameError: name ‘_C‘ is not defined [How to Solve]
- Python parsing JSON Error: NameError: name ‘false’ is not defined
- [Python] Right-click Selenium to Save the picture error: attributeerror: solution to module ‘pyscreen’ has no attribute ‘locationonwindow’
- [Solved] error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows