셀레니아를 통해 요소를 검색하는 데있어 잘못된 점을 이해하는 데 도움을 줄 수 있습니까?셀레니드가 웹 요소를 찾지 못했습니다
내가 같은 HTML 코드가 :
<div>
Current method:
<strong>
SMS
</strong>
</div>
셀레늄은 요소가이 XPath는에게
findElement(By.xpath("//div[contains(. , \"Current method\")]/strong"))
을 던져 찾지 만 셀렌은 같은 로케이터와 ElementNotFound 예외를 반환
$(By.xpath("//div[contains(. , \"Current method\")]/strong"))