Skip to main content
Active reading [<https://en.wikipedia.org/wiki/Selenium_(software)#Selenium_WebDriver>]. [(its = possessive, it's = "it is" or "it has". See for example <https://www.youtube.com/watch?v=8Gv0H-vPoDc&t=1m20s> and <https://www.wikihow.com/Use-Its-and-It%27s>.)]
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Try this. ItsIt's very easy:

driver.getPageSource().contains("text to search"); 

This really worked for me in selenium web driverSelenium WebDriver.

Try this. Its very easy:

driver.getPageSource().contains("text to search"); 

This really worked for me in selenium web driver.

Try this. It's very easy:

driver.getPageSource().contains("text to search"); 

This really worked for me in Selenium WebDriver.

added 4 characters in body
Source Link
Soner Gönül
  • 99.1k
  • 103
  • 224
  • 375

Try this. Its very easy:

driver.getPageSource().contains("text to search");

driver.getPageSource().contains("text to search"); 

This really worked for me in selenium web driver.

Try this. Its very easy:

driver.getPageSource().contains("text to search");

This really worked for me in selenium web driver.

Try this. Its very easy:

driver.getPageSource().contains("text to search"); 

This really worked for me in selenium web driver.

Source Link
Amit
  • 196
  • 1
  • 7

Try this. Its very easy:

driver.getPageSource().contains("text to search");

This really worked for me in selenium web driver.