코딩/Python

[셀레니움] is not clickable at point 오류

김 숨 2023. 7. 31. 09:44

1. 오류메세지

 Message: element click intercepted: Element ... is not clickable at point (1285, 836). Other element would receive the click:

 

2. 문제가 되는 코드

ul_gugun = findById('html_locallayer')
il_gugun = ul_gugun.find_elements(By.TAG_NAME,'li')
list_gu1 = random.randrange(0,len(il_gugun))

findByXPath(f'//*[@id="html_locallayer"]/li[{list_gu1}]/label').click()

 

3. 해결방법
<label> 태그의 부모태그인 <li>를 클릭 하도록 수정

 

테스트 용 크롬이 나왔다

목적 : 브라우저 자동화 및 테스트 목적

크롬의 특징 중 하나는 브라우저 자동 업데이트를 지원한다. 사용자 입장에선 항상 기능 및 버그가 개선된 최신 브라우저를 사용할 수 있지만, 개발자 혹은 테스터 입장에서는 이 업데이트가 번거로운 경우가 많다.

특정 버전으로 개발 하고 있었을 때 커밋하고 분기를 확인 해야 할 때,  테스터는 반복되는 테스트를 실행할 때, 일관성있는 결과가 나오지 않을 수 있다.

https://developer.chrome.com/blog/chrome-for-testing/

 

Chrome for Testing: reliable downloads for browser automation - Chrome Developers

Chrome for Testing is a new Chrome flavor that specifically targets web app testing and automation use cases.

developer.chrome.com