콘솔워크

[selenium] 입력 받은 텍스트가 포함된 web element 찾기 by xpath 본문

프로그래밍/python

[selenium] 입력 받은 텍스트가 포함된 web element 찾기 by xpath

이휘재123 2022. 7. 21. 16:47
반응형
element = driver.find_element(By.XPATH, f"//td[contains(.,'{your_text}')]")

참고 문서: https://qa.wujigu.com/qa/?qa=760508/python-selenium-syntaxerror-failed-execute-evaluate-document-the-string-div-contains-%40class-product-card__subtitle

반응형