string searchText = "test this";
Sel.Type("//*[@id='txtbox']", searchText);
Sel.Click("//*[id='goButton']");
string highlightedTermsInResultsPage = Sel.GetText("//*[@id='searchTermMatch']"); //returns "test"
How can I compare searchText and highlightedTermsInResultsPage using IsElementPresent() method? I want to check if highlightedTermsInResultsPage matches part of searchText or whole searchText.
I’m not sure I understand the question, but maybe you can do