Does anyone know how to store the source code of your page as a string? I tried sending the keys “Ctrl+U” and then trying to assert whether an element is present on the source code is present. Anyone know any workarounds to this?
You can use getSourceCode() function to get it. Below is a sample how to get a full source code :
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
WebDriver driver = DriverFactory.getWebDriver()
'Get source code of current page'
Source code is saved to which location ?