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
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.
MoveTargetOutOfBoundsException
will occur, so as a workaround, use ** arguments [0] .scrollIntoView (); ** to scroll the screen. I was trying to move it.javascript error: arguments [0] .scrollIntoView is not a function
And an error ...Recommended Posts