Hi I'm trying to select an edit button and I am having difficulty selecting it.Ruby Watir - 참조 용으로 <a onclick="new Ajax.Request
<td>
<a onclick="new Ajax.Request('/media/remote/edit_source/3', {asynchronous:true, evalScripts:true}); return false;" href="#">
<img title="Edit" src="/media/images/edit.gif?1258500617" alt="Edit">
</a>
I have the number at the end of ('/media/remote/edit_source/3') the which changes and I have stored it in @rep_id variable.
I can't use xpath because the table changes often. Any suggestions? Any help is greatly appreciated. Below is what I have tried and fails. I am fairly new to watir and love it, but occasionally I run into things like this and get stumped.
browser.a(:text, "/media/remote/edit_source/#{@rep_id}").when_present.click
의견을 보내 주셔서 감사합니다. 정규식은 완벽하게 작동했습니다. 정말 고맙습니다. 나는 정말로 붙어 있었다. –