우아한 프로그래밍
article thumbnail

1. 1. 비쥬얼스튜디오 세팅


NuGet 패키지 관리자에서 아래 그림의 빨간 네모 설치

2. 2. 함수


<code />
private static bool WaitForVisivle(IWebDriver driver, By by) { WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(5)); try { IWebElement element = wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementIsVisible(by)); } catch (Exception e) { return false; } return true; }

3. 3. 사용방법


<code />
WaitForVisivle(driver, By.CssSelector("._1-l2WpC3s6fjzY2uUQiBR3 .field-input"));
profile

우아한 프로그래밍

@자바조아!

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!