250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- fastapi
- Spring
- deploy
- axios
- RDS
- springboot
- webhook
- React
- MUI
- Github Actions
- error
- javascript
- 500
- TypeScript
- python
- Troubleshooting
- macbook
- docker
- github
- Java
- Jenkins
- AWS EC2
- ngrok
- linux
- js
- AWS
- EC2
- Express
- MongoDB
- nodejs
Archives
- Today
- Total
BEAT A SHOTGUN
[TROUBLESHOOTING] selenium error 본문
728x90
반응형
SMALL
Error 1
Error message
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid locator
solution
driver.find_element("class_name", "AAA").click() ❌
🔽
from selenium.webdriver.common.by import By
driver.find_element(By.CLASS_NAME, "AAA").click() ✅
Error 2
Error message
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".A A A"}
solution
driver.find_element(By.CLASS_NAME, "A A A").click() ❌
🔽
driver.find_element(By.CLASS_NAME, "A.A.A").click() ✅
728x90
반응형
LIST
'TROUBLESHOOTING' 카테고리의 다른 글
[TROUBLESHOOTING] hibernate.dialect not set (0) | 2023.10.28 |
---|---|
[TROUBLESHOOTING] Another CORS ERROR (0) | 2023.08.22 |
[TROUBLESHOOTING] ConnectionRefusedError: [WinError 10061] No connection ... or DoesNotExist: Site matching query does not exist. (0) | 2023.07.05 |
[TROUBLESHOOTING] Flutter web CORS (0) | 2023.05.14 |
[TROUBLESHOOTING] Flutter Doctor - Visual Studio - develop for Windows (0) | 2023.04.25 |
Comments