I wanted to ask if it is possible to extract a sting from the IWebElement definition. My goal is to avoid redundancy and remove the locators from the definition (in a large file, the locators' paths are less readable compared to the aligned paths for IWebElement objects.
Example: I want to extract the value of "html body" from the public IWebElement htmlBody.
enter code here