Open haberdashPI opened 1 month ago
Thanks for reporting. I wonder if we could enhance the getTitle
method to also check for html
content if getText
returns an empty string. I think I've seen similar issues with Chrome Headless and getting visible text elsewhere. Any help investigating this issue or possible fix are appreciated.
In one of my tests, I'm trying to evaluate the impact of a command on the contents of a text document. Right now I just have some
console.log
statements peppered throughout the test so I can debug what's going on:When I'm using a headless browser (as follows) I get an empty string for the above
[DEBUG]
statement:Commenting out the
args: ['headless']
command causesconsole.log
to print out the expected file contents.