강의

멘토링

로드맵

Inflearn Community Q&A

cjh923195765's profile image
cjh923195765

asked

Python Selenium Advanced (python selenium - crawling, crawler)

3-2. Make an element clickable within the screen bounds

액션체인 부분.. 스크롤..

Written on

·

691

1

5.png

해당 부분에서 액션체인 scroll이 오류가 나네요.
제가 뭘 놓친걸까요 ?

웹-크롤링seleniumcdp

Answer 1

2

lread90님의 프로필 이미지
lread90
Instructor

selenium package update로 ActionChains의 scroll(sx,sy,dx,dy)함수가 사라졌습니다

기존의 코드를 변경해주셔야합니다( *추가 강의를 촬영하여 업로드하겠습니다)

.scroll하던 모든 코드를 .scroll_by_amount로 변경해야합니다

ActionChains(driver).scroll(sx, sy, 0, randY).perform() #기존 코드

 

 ActionChains(driver).scroll_by_amount(0, randY).perform() # 바뀌어야할 코드

 

cjh923195765's profile image
cjh923195765

asked

Ask a question