What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium

Overview

When I moved the script that adjusted the display position of the screen using ** arguments [0] .scrollIntoView (); ** with python selenium for the first time in a long time, it fell due to an error, so how to deal with it

Workaround

self.driver.execute_script("arguments[0].scrollIntoView();", inputLabel)

From

inputLabel.location_once_scrolled_into_view

Changed to. ʻInputLabel` is the element obtained by the find_element_by_XXX method of webdriver.

Status

Recommended Posts

What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
What to do if pip install fails in Xcode 5.1
What to do if you get a minus zero in Python
What to do if pipreqs results in UnicodeDecodeError
Note: What to do if pip install fails
What to do to get google spreadsheet in python
What to do if there is a decimal in python json .dumps
What to do if you can't use scikit grid search in Python
What to do if No Python documentation found for ... appears in pydoc
What to do if SciPy installation fails on CentOS
What to do if a UnicodeDecodeError occurs in pip
What to do if pip install fails to install dependent libraries
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do if a version error occurs in the selenium Chrome driver
[Python] How to do PCA in Python
What to do if you get `No kernel for language python found` in Hydrogen
What to do if pip gives a DistributionError in Homebrew
What to do if the print command itself causes an error in Maya python
What to do if you get "coverage unknown" in Coveralls
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if the progress bar is not displayed in tqdm of python
What to do with PYTHON release?
What to do if Python IntelliSense is not displayed in VS Code on Windows
What to do if package installation fails when deploying to heroku
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
What to do if Sort imports get stuck in VS Code's Python Extension (around 2020/09)
What to do if `pip install matplotlib` fails on Mac
What to do if you can't log in as root
What to do if pip install mysqlclient fails on MacOS
What to do if Python does not switch from the System version in pyenv
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you run python in IntelliJ and end with an error
What to do if you get Swagger-codegen in python and Import Error: No module named
Do you want to wait for general purpose in Python Selenium?
What to do if Python doesn't work on Git for Windows
What to do if you can't install pyaudio with pip #Python
What to do if python says "fatal error:'stdio.h' file not found"
What to do if Insecure Platform Warning appears when running Python
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do if PyAudio cannot be installed on Python 3.7, 3.8, 3.9 on Windows
What to do if you can't use the trash in Lubuntu 18.04.
What to do when ModuleNotFoundError: No module named'XXX' occurs in Python
What to do when the value type is ambiguous in Python?
How to do R chartr () in Python
What to do if you can't find PDO in Laravel or CakePHP
What to do if you couldn't send an email to Yahoo with Python.
What to do if ipython and python start up with different versions
What to do if the yum command fails to set locale, defaulting to C
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if the server doesn't start with python manage.py runserver
What to do if you can't install with pip in babun environment
What happens if you do "import A, B as C" in Python?
After all, what should I use to do type comparisons in Python?
I want to do Dunnett's test in Python
What to do if you can't pipenv shell
[Python] What I did to do Unit Test
Minimal implementation to do Union Find in Python