we have following code on page which has angular ng-if condition. ng-if condition will execute dynamically and pickup tags as per requirements. I have observed on html page that everything is working. I observed following html code after inspecting page. If I print innerHTML of parent element by selenium then I found As per my understanding, Selenium DOM is not