How to automate macOS application using WKWebView?

I am embedding WKWebView in my macOS application and need to automate entering text and clicking form buttons on a webpage. I tried using selenium and it doesn't support WKWebView, it can only create a new Safari instance. What are my options?