Using Selenium along with Javascript, I am attempting to utilize the command
if(driver.getPageSource().contains("Yes!"))
In order to check for the presence of Yes! anywhere on the page. However, I am receiving an error indicating that the command is not supported. Has there been any recent updates or changes that could have affected this functionality?