Testing screen logic without launching the browser

Good afternoon. Is it possible to test the logic of processing “window” information without running in browser emulation? I inherited a class from AppLoginWindow and rewrote the doLogin() method, which implements the required logic. Can I test this method (or the login method) in isolation?

Hi,
There is a testing library for this purpose: