<div class="plan"> don't get <a class="ensure" href="https://google.com">linktext</a> more sentence here </div>
I'm trying to get Xpath to assert the whole sentence which is all the text with apostrophe and (link + its text) in 1 expression as below. But its not working, please help?
//div[contains(text() = 'don\'t get more sentence here']/a[contains(text()='linktext')]/@href']