Grails - How to check, if a link is pointed to correct location using Geb?

StackOverflow https://stackoverflow.com/questions/21981708

  •  15-10-2022
  •  | 
  •  

문제

I have a link <a herf="redirect_url" class="class_name">link</a> that is pointed to some page. How can i check if, the link is pointed to correct location using Geb?

도움이 되었습니까?

해결책

This would work

$("a.class_name").attr("href") == "redirect_url"

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top