로딩
요청 처리 중입니다...

selenium 테스트 자동화 샘플 코드 시연

 selenium 테스트 자동화 샘플 코드 시연

selenium으로 크롬 브라우저에서 ui 테스트 자동화 샘플 코드다. 아래의 간단한 과정이 실행된다.

크롬 브라우저 열기 → 구글 사이트 진입 → 구글 이미지 링크 클릭 → 검색 창에 stlc life cycle 입력 → 엔터 키 입력 selenium 테스트 자동화 샘플 코드 파이썬 코드임. from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC URL = 'https://www.google.com' # Chro...