일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 테스트 설계 기법에 따른 분류
- regression test
- selenium
- testcase
- testing method
- maintainability test
- risk-based testing
- test
- 유지보수성 테스트
- QA
- Testing
- ISTQB
- Test Case
- RBT
- Software life cycle model
- seleium
- 비기능테스트
- 테스트
- 위험 기반 테스트
- SQA
- 품질
- agile
- csts
- Python
- 테스트케이스
- 테스트 케이스
- 파이썬
- 셀레니움
- 애자일
- 자동화
Archives
- Today
- Total
목록페이지 스크롤 (1)
Study_Note
selenium python : page scroll
파이썬을 이용하여 셀레니움을 이용한 페이지 스크롤 예시코드. from selenium import webdriver import time # 웹 드라이버 실행 driver = webdriver.Chrome() # 페이지 로드 driver.get("https://example.com") # 스크롤할 요소 식별 element = driver.find_element_by_tag_name("body") # 500픽셀 아래로 스크롤하는 함수 정의 def scroll_down(): script = "window.scrollTo(0, 500);" driver.execute_script(script) # 5번 스크롤하면서 1초씩 쉬기 for i in range(5): scroll_down() time.sleep(1) ..
selenium (with python)
2023. 4. 28. 17:04