I've got a anchor href value that will be set with ajax. What is the syntax to make this work for an ajax call? I.e., I need to wait not for the find to find the anchor, but when the anchor has a href that is not '#'. I.e., how can I put the begins with match in the expath query?
expect(find(:xpath, "//a[@data-image-id='#{@image.id}']/../a[contains(@class, 'thumb-download')]")[:href]).to match(/https:/)
Thanks.