4 글 보임 - 1 에서 4 까지 (총 4 중에서)
-
글쓴이글
-
2025년 10월 9일 21:57 #142673

오주혁참가자셀레니움 값이 입력이 안되는 현상이 있습니다 다른 input들도 똑같은건데 이 input만 유독 아무리 해도 입력이 안되던데 왜 그런가요? <div class="fdc gap-26 __user_info_inner"> <div class="fdc gap-8"> <p>계좌번호</p> <input type="hidden" data-name="bank_seq" value="4"> <input type="hidden" data-name="bank_code" value="088"> <div class="input-01 __input"> <input class="" type="tel" data-name="bank_acct_no" value="" required-value="" placeholder="계좌번호"> <span class="__placeholder hide">계좌번호</span> </div> </div> <div class="fdc gap-8"> <p>예금주명</p> <div class="input-01 __input"> <input class="" type="text" data-name="user_name" value="" required-value="" placeholder="고객명(예금주명)"> <span class="__placeholder hide">예금주명</span> </div> </div> <div class="fdc gap-8"> <p>휴대폰 번호</p> <div class="input-01 __input"> <input class="__phone" type="tel" data-name="phone" value="" required-value="" placeholder="010-"> <span class="__placeholder hide">휴대폰 번호</span> </div> </div> <div class="fdc gap-8 input-inumber __inumber "> </div> <div class="flx je " style="margin-top:-1.6rem"> <div class="agree"> <label> <input class="__save" type="checkbox" checked=""> <span>은행정보 기억하기</span> </label> </div> </div> </div> 에서 전화번호 입력할때 정말로 입력이 안됩니다phone_input = WebDriverWait(driver, 5).until( EC.element_to_be_clickable((By.CSS_SELECTOR, "input[data-name='phone']")) ) phone_input.clear() phone_input.send_keys("01012345678")2025년 10월 10일 09:31 #142685
codingapple키 마스터from selenium.webdriver import ActionChains ActionChains(driver).move_to_element(phone_input).click().perform() ActionChains로 인풋을 클릭한 번 한 다음 send_keys 하라고 해봅시다
2025년 10월 10일 15:50 #142722
오주혁참가자try: time.sleep(1) phone_input = WebDriverWait(driver, 5).until( EC.element_to_be_clickable((By.CSS_SELECTOR, "input[data-name='phone']")) )
# 스크롤해서 보이게 driver.execute_script("arguments[0].scrollIntoView(true);", phone_input) time.sleep(0.5)# ActionChains로 클릭 후 입력 from selenium.webdriver import ActionChains ActionChains(driver).move_to_element(phone_input).click().perform() time.sleep(0.3)
phone_input.clear() phone_input.send_keys("01012345678") print("✅ 전화번호 입력 완료: 01012345678")except Exception as e: print(f"❌ 전화번호 입력 실패: {e}")여전히 안됩니다...
-
글쓴이글
4 글 보임 - 1 에서 4 까지 (총 4 중에서)
- 답변은 로그인 후 가능합니다.
