Get Page Content
page.content() returns the full HTML source of the current page, similar to viewing the page source.
Task:
- Navigate to
https://testkru.com/Elements/TextFields - Get the page content using
page.content() - Check if it contains the string "preFilledTextField"
- Check if it contains the string "invisibleField"
- Print the results and whether the content length is greater than 0
Expected output:
Contains preFilledTextField: true Contains invisibleField: true Content length > 0: true
TestKru