728x90
element = Driver.FindElement(By.XPath("//input[@class='x-input select2-offscreen' and contains(@name,'" + fieldName + "')]//preceding::div[1]/a/span[@class='select2-chosen']"));
[출처]
728x90
'Python > Crawling' 카테고리의 다른 글
Selenium - JavaScriptExecutor (0) | 2023.05.04 |
---|---|
Selenium - xpath (0) | 2023.05.04 |
Selenium - 아래 또는 위로 스크롤하는 방법 (0) | 2023.05.04 |
Selenium - Waits (0) | 2023.05.04 |
Web Driver & Selenium (0) | 2023.05.04 |