window.scrollTo() suddenly stopped working after working fine many years into a legacy project

£可爱£侵袭症+ 提交于 2019-12-11 16:23:21

问题


This is the Firefox webdriver code:

driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")

which is now not working.

I suspect version upgrade issue,

Here are our versions: python version is 3.6 selenium version is 3.141.0

We have another project using same geckodriver and same firefox on same host and is working fine. Is there a way to print webdriver options, settings etc and compare the two scenarios ?

来源:https://stackoverflow.com/questions/57436587/window-scrollto-suddenly-stopped-working-after-working-fine-many-years-into-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!