Browser render via directx

Hello. I would like to learn how to use the electron browser in a game. I have a buffer from image.bitmap, but how do I do control over the browser? (scroll bar, input url, etc…)