How to find an element that is not existing on the page with selenium webdriver testng framework
Selenium webdriver is not coming out of the page if asking it to find an element that is actually not present.
i have to pass the test if a particular button is not present on the page.
it is not stopping the execution, i have to close the browser manually then only able to see the results in console.
You’ve mentioned ‘But for certain devices the page should not show or not display this “change” button.’ That button can be specific to those devices. Hence you cannot find or locate that in browser obviously.
This answer is given depends on my understanding on your question.